Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions nix/hosts/mephistopheles/multimedia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
}:

{
programs = {
gpu-screen-recorder.enable = true;
};

services = {
pipewire = {
enable = true;
Expand Down
11 changes: 10 additions & 1 deletion nix/users/ilkecan/appearence/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ in
stylix = {
enable = true;
base16Scheme = "${pkgs.base16-schemes}/share/themes/solarized-dark.yaml";
targets.firefox.profileNames = [ config.home.username ];
icons = {
enable = true;
package = pkgs.papirus-icon-theme;
dark = "Papirus-Dark";
};
polarity = "dark";

targets = {
firefox.profileNames = [ config.home.username ];
};
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,16 @@ in
"archlinux"
"aur"

"python"
"pypi"

"rails"
"ruby"
"rubygems"

"python"
"pypi"
"crates"
"docs-rs"
"rust"
];

engines =
Expand Down Expand Up @@ -88,6 +92,20 @@ in
definedAliases = [ "@aur" ];
};

crates = {
name = "crates.io";
urls = [ { template = "https://crates.io/search?q={searchTerms}"; } ];
iconMapObj."48" = "https://crates.io/favicon.ico";
definedAliases = [ "@crates" ];
};

docs-rs = {
name = "Docs.rs";
urls = [ { template = "https://docs.rs/releases/search?query={searchTerms}"; } ];
iconMapObj."32" = "https://docs.rs/-/static/favicon.ico";
definedAliases = [ "@docs-rs" ];
};

duckduckgo = {
name = "DuckDuckGo​";
urls = [ { template = "https://duckduckgo.com/?q={searchTerms}"; } ];
Expand Down Expand Up @@ -264,6 +282,16 @@ in
];
};

rust = {
name = "std - Rust";
urls = [ { template = "https://doc.rust-lang.org/std/index.html?search={searchTerms}"; } ];
iconMapObj."196" = "https://doc.rust-lang.org/favicon.ico";
definedAliases = [
"@rust"
"rs"
];
};

startpage = {
name = "StartPage";
urls = [ { template = "https://www.startpage.com/sp/search?query={searchTerms}"; } ];
Expand Down
5 changes: 0 additions & 5 deletions nix/users/ilkecan/multimedia/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
lib,
pkgs,
...
}:

Expand All @@ -12,10 +11,6 @@ in
{
imports = collectImports ./.;

home.packages = with pkgs; [
exiftool
];

services = {
playerctld.enable = true;
};
Expand Down
1 change: 1 addition & 0 deletions nix/users/ilkecan/multimedia/image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

{
home.packages = with pkgs; [
exiftool
imagemagick
krita
libjxl # `cjxl` & `jxlinfo`
Expand Down
2 changes: 2 additions & 0 deletions nix/users/ilkecan/multimedia/video.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
{
home.packages = with pkgs; [
ffmpeg-full
gpu-screen-recorder
gpu-screen-recorder-gtk
unstable.stremio-linux-shell
vlc
];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# https://github.com/refractalize/oil-git-status.nvim
{
pkgs,
...
}:

{
programs.nvf.settings.vim = {
extraPlugins = {
oil-git-status-nvim = {
package = pkgs.unstable.vimPlugins.oil-git-status-nvim;
setup = ''
require("oil-git-status").setup()
'';
};
};

utility.oil-nvim.setupOpts = {
win_options = {
signcolumn = "yes:2";
};
};
};
}
38 changes: 37 additions & 1 deletion nix/users/ilkecan/text-editors/neovim/plugins/oil-nvim.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,43 @@ in
skip_confirm_for_simple_edits = true;
keymaps = {
"y." = mkLuaInline ''
{ "actions.copy_entry_path", mode = "n" };
{ "actions.copy_entry_path", mode = "n" }
'';
"yy" = mkLuaInline ''
{
callback = function()
local oil = require("oil")
local actions = require("oil.actions")
local entry = oil.get_cursor_entry()
local dir = oil.get_current_dir()

if not entry or not dir then
return actions.copy_entry_filename.callback()
end

local git_dir = vim.fs.find(".git", {
path = dir,
upward = true,
})[1]

if not git_dir then
return actions.copy_entry_filename.callback()
end

local relative_path = vim.fs.relpath(
vim.fs.dirname(git_dir),
dir .. entry.name
)

if not relative_path then
return actions.copy_entry_filename.callback()
end

vim.fn.setreg(vim.v.register, relative_path)
end,
desc = "Copy path relative to git root, or filename",
mode = "n",
}
'';
};
};
Expand Down