Merge branch 'master' of ssh://ssh.nx2.site:50022/nx2/dotfiles
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# ❄️ NixOS Dotfiles
|
# ❄️ NixOS Dotfiles
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Information
|
## Information
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
unfree = [
|
unfree = [
|
||||||
|
"antigravity"
|
||||||
"cursor"
|
"cursor"
|
||||||
"discord"
|
"discord"
|
||||||
"spotify"
|
"spotify"
|
||||||
@@ -10,8 +10,6 @@
|
|||||||
"zoom-us"
|
"zoom-us"
|
||||||
"zoom"
|
"zoom"
|
||||||
|
|
||||||
# since the predicate ist to be set in the flake and not in a module
|
|
||||||
# it is impossible to make the list dynamic and respect nvidia.enable
|
|
||||||
"nvidia-x11"
|
"nvidia-x11"
|
||||||
"nvidia-settings"
|
"nvidia-settings"
|
||||||
"nvidia-persistenced"
|
"nvidia-persistenced"
|
||||||
@@ -41,8 +39,5 @@
|
|||||||
|
|
||||||
"vscode-extension-mhutchie-git-graph"
|
"vscode-extension-mhutchie-git-graph"
|
||||||
];
|
];
|
||||||
|
insecure = [ ];
|
||||||
inecure = [
|
|
||||||
# "electron-25.9.0"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|||||||
50
flake.lock
generated
50
flake.lock
generated
@@ -39,11 +39,11 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1762095388,
|
"lastModified": 1763901903,
|
||||||
"narHash": "sha256-7Q8LtcvKWHbP8znARRTOY2tpU5WoV6FHwp5TZJOI8Us=",
|
"narHash": "sha256-w7YsxTjldwhUBP5ypbcZvWyZgRQqp3NBfyk5BAfrFjQ=",
|
||||||
"owner": "9001",
|
"owner": "9001",
|
||||||
"repo": "copyparty",
|
"repo": "copyparty",
|
||||||
"rev": "ac085b8149ff50e03d260128596dd130ed1c7cae",
|
"rev": "fb9f0441c99833ab7bc035d76b9a89021270675a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -329,11 +329,11 @@
|
|||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763427561,
|
"lastModified": 1763912895,
|
||||||
"narHash": "sha256-7m7/uCNhBwUAB26QZs/pvFi1wlzpImnNCEF+a883oOs=",
|
"narHash": "sha256-1mdM539nkqTWVHTHPCGHGrLu/UwsxeYWnrnHQaUh1qQ=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "edc311544a54a06ce4acb759b4d9a30853695452",
|
"rev": "2b0fd417d32278159d0ca1d23fb997588c37995b",
|
||||||
"revCount": 6618,
|
"revCount": 6643,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
@@ -627,11 +627,11 @@
|
|||||||
"nixpkgs": "nixpkgs_4"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763385941,
|
"lastModified": 1763738061,
|
||||||
"narHash": "sha256-99CBNgyMvg3Zu/hxqixtShevrF4Kfr/qjtizQ6oseVI=",
|
"narHash": "sha256-VpNRcInaj1MOya8NmcqhFmdO7KGO7SSZelJQmPl6HoQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "NixOS-WSL",
|
"repo": "NixOS-WSL",
|
||||||
"rev": "cc6483354b236c2fc95cc1d4ba1f0f40b7345e69",
|
"rev": "3bcc267c4e0efa023b98b9c5cfbe11b88ec2dc8f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -690,11 +690,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-latest": {
|
"nixpkgs-latest": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763477650,
|
"lastModified": 1763929585,
|
||||||
"narHash": "sha256-PM2ykDLxh6V7cVFjn8WxmZjuogJK0VHTTLexu8LUtQs=",
|
"narHash": "sha256-uxJ8vJoupgc3oJYOK3UV/kbi1f4mXFsh1BuuozhZpfw=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e9bfdb3ed05b5b2df8226d31e256d8ee4c53edde",
|
"rev": "a5f13fe8d33e5dd3585980b288366665d35ed379",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -722,11 +722,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763283776,
|
"lastModified": 1763678758,
|
||||||
"narHash": "sha256-Y7TDFPK4GlqrKrivOcsHG8xSGqQx3A6c+i7novT85Uk=",
|
"narHash": "sha256-+hBiJ+kG5IoffUOdlANKFflTT5nO3FrrR2CA3178Y5s=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "50a96edd8d0db6cc8db57dab6bb6d6ee1f3dc49a",
|
"rev": "117cc7f94e8072499b0a7aa4c52084fa4e11cc9b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -801,11 +801,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs_5": {
|
"nixpkgs_5": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763334038,
|
"lastModified": 1763622513,
|
||||||
"narHash": "sha256-LBVOyaH6NFzQ3X/c6vfMZ9k4SV2ofhpxeL9YnhHNJQQ=",
|
"narHash": "sha256-1jQnuyu82FpiSxowrF/iFK6Toh9BYprfDqfs4BB+19M=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4c8cdd5b1a630e8f72c9dd9bf582b1afb3127d2c",
|
"rev": "c58bc7f5459328e4afac201c5c4feb7c818d604b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1016,11 +1016,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763417348,
|
"lastModified": 1763870012,
|
||||||
"narHash": "sha256-n5xDOeNN+smocQp3EMIc11IzBlR9wvvTIJZeL0g33Fs=",
|
"narHash": "sha256-AHxFfIu73SpNLAOZbu/AvpLhZ/Szhx6gRPj9ufZtaZA=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "3f66a7fb9626a9a9c077612ef10a0ce396286c7d",
|
"rev": "4e7d74d92398b933cc0e0e25af5b0836efcfdde3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -1107,11 +1107,11 @@
|
|||||||
"rust-overlay": "rust-overlay_2"
|
"rust-overlay": "rust-overlay_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1763445380,
|
"lastModified": 1763600401,
|
||||||
"narHash": "sha256-TGTZb9kJKq+z1Gn+39U9v6Ltsog2LhI7mZdf8/jcON4=",
|
"narHash": "sha256-druDd9HC3UxZSzCY+qaFp9QDCGfzrhv+Zrytia6lJUE=",
|
||||||
"owner": "sxyazi",
|
"owner": "sxyazi",
|
||||||
"repo": "yazi",
|
"repo": "yazi",
|
||||||
"rev": "f9abe886ccfc801348be73f62c863beb87fd0bb0",
|
"rev": "a08b345a02c6b4c65239a0522f67e77a0132e88b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
Binary file not shown.
@@ -21,10 +21,10 @@
|
|||||||
};
|
};
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
credential = {
|
credential = {
|
||||||
"https://git.da.dicos.de".username = lib.mkIf (hyper.host =="NxDCS") "lkurzweg";
|
"https://git.da.dicos.de".username = lib.mkIf (hyper.host == "NxDCS") "lkurzweg";
|
||||||
"https://git.da.dicos.de".password = lib.mkIf (hyper.host =="NxDCS") "Test";
|
"https://git.da.dicos.de".password = lib.mkIf (hyper.host == "NxDCS") "Test";
|
||||||
};
|
};
|
||||||
url."ssh://git@git.da.dicos.de/".insteadOf = lib.mkIf (hyper.host =="NxDCS") "https://git.da.dicos.de/";
|
url."ssh://git@git.da.dicos.de/".insteadOf = lib.mkIf (hyper.host == "NxDCS") "https://git.da.dicos.de/";
|
||||||
url."ssh://git@github.com/".insteadOf = "https://github.com/";
|
url."ssh://git@github.com/".insteadOf = "https://github.com/";
|
||||||
pull.rebase = false; # true
|
pull.rebase = false; # true
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -163,8 +163,8 @@ in {
|
|||||||
|
|
||||||
blur = {
|
blur = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
size = "10";
|
size = "2";
|
||||||
passes = "2";
|
passes = "4";
|
||||||
xray = false;
|
xray = false;
|
||||||
vibrancy = 0.5;
|
vibrancy = 0.5;
|
||||||
ignore_opacity = true;
|
ignore_opacity = true;
|
||||||
@@ -215,7 +215,7 @@ in {
|
|||||||
exec-once = [
|
exec-once = [
|
||||||
"waybar"
|
"waybar"
|
||||||
"swww-daemon"
|
"swww-daemon"
|
||||||
"hyprland-autoname-workspaces"
|
# "hyprland-autoname-workspaces"
|
||||||
"/usr/lib/polkit-kde-authentication-agent-1 "
|
"/usr/lib/polkit-kde-authentication-agent-1 "
|
||||||
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
|
||||||
"syncthing -no-browser"
|
"syncthing -no-browser"
|
||||||
@@ -603,7 +603,9 @@ in {
|
|||||||
submap = screenshot
|
submap = screenshot
|
||||||
${action_simple { key = "W"; cmd = ''exec,hyprshot -m window''; }}
|
${action_simple { key = "W"; cmd = ''exec,hyprshot -m window''; }}
|
||||||
${action_simple { key = "M"; cmd = ''exec,hyprshot -m output''; }}
|
${action_simple { key = "M"; cmd = ''exec,hyprshot -m output''; }}
|
||||||
|
${action_simple { key = "S"; cmd = ''exec,hyprshot -m output''; }}
|
||||||
${action_simple { key = "R"; cmd = ''exec,hyprshot -m region''; }}
|
${action_simple { key = "R"; cmd = ''exec,hyprshot -m region''; }}
|
||||||
|
${action_simple { key = "A"; cmd = ''exec,hyprshot -m region''; }}
|
||||||
bind = , Escape, execr, submap_indicator unset
|
bind = , Escape, execr, submap_indicator unset
|
||||||
bind = , Escape, submap, reset
|
bind = , Escape, submap, reset
|
||||||
submap = reset
|
submap = reset
|
||||||
|
|||||||
@@ -1,29 +1,29 @@
|
|||||||
{ pkgs, ... }@all: with all; {
|
{ pkgs, ... }@all: with all; {
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
opencode
|
unstable.opencode
|
||||||
];
|
];
|
||||||
file.".config/opencode/opencode.json".text = let
|
# file.".config/opencode/opencode.json".text = let
|
||||||
model = "qwen2.5-coder:7b";
|
# model = "qwen2.5-coder:7b";
|
||||||
in builtins.toJSON {
|
# in builtins.toJSON {
|
||||||
"$schema" = "https://opencode.ai/config.json";
|
# "$schema" = "https://opencode.ai/config.json";
|
||||||
model = "ollama/${model}";
|
# model = "ollama/${model}";
|
||||||
theme = "matrix";
|
# theme = "matrix";
|
||||||
provider = {
|
# provider = {
|
||||||
ollama = {
|
# ollama = {
|
||||||
name = "Ollama (local)";
|
# name = "Ollama (local)";
|
||||||
npm = "@ai-sdk/openai-compatible";
|
# npm = "@ai-sdk/openai-compatible";
|
||||||
options = {
|
# options = {
|
||||||
baseURL = "http://localhost:11434/v1";
|
# baseURL = "http://localhost:11434/v1";
|
||||||
};
|
# };
|
||||||
models = {
|
# models = {
|
||||||
"${model}" = {
|
# "${model}" = {
|
||||||
tools = true;
|
# tools = true;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
] ++ (if (hyper.host != "NxACE") then [
|
] ++ (if (hyper.host != "NxACE") then [
|
||||||
signal-desktop
|
signal-desktop
|
||||||
unstable.code-cursor-fhs
|
unstable.code-cursor-fhs
|
||||||
|
latest.antigravity
|
||||||
obsidian
|
obsidian
|
||||||
zoom-us
|
zoom-us
|
||||||
inkscape
|
inkscape
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"${hyper.home}/vault/ssh/nxgit-nx2-${hyper.host}"
|
"${hyper.home}/vault/ssh/nxgit-nx2-${hyper.host}"
|
||||||
"${hyper.home}/vault/ssh/github-noggynoggy-${hyper.host}"
|
"${hyper.home}/vault/ssh/github-noggynoggy-${hyper.host}"
|
||||||
"${hyper.home}/vault/ssh/tg-dm-informatik-tuda"
|
"${hyper.home}/vault/ssh/tg-dm-informatik-tuda"
|
||||||
|
(pkgs.lib.mkIf (hyper.host == "NxDCS") "${hyper.home}/vault/ssh/dcsgit-lkurzweg-${hyper.host}")
|
||||||
];
|
];
|
||||||
"github.com".identityFile = [ "${hyper.home}/vault/ssh/github-noggynoggy-${hyper.host}" ];
|
"github.com".identityFile = [ "${hyper.home}/vault/ssh/github-noggynoggy-${hyper.host}" ];
|
||||||
"nxace" = nxace "nxace";
|
"nxace" = nxace "nxace";
|
||||||
|
|||||||
@@ -30,24 +30,24 @@ in {
|
|||||||
{ on = "<C-f>"; run = "arrow 100%"; desc = "Move cursor down one page"; }
|
{ on = "<C-f>"; run = "arrow 100%"; desc = "Move cursor down one page"; }
|
||||||
{ on = "<PageUp>"; run = "arrow -100%"; desc = "Move cursor up one page"; }
|
{ on = "<PageUp>"; run = "arrow -100%"; desc = "Move cursor up one page"; }
|
||||||
{ on = "<PageDown>"; run = "arrow 100%"; desc = "Move cursor down one page"; }
|
{ on = "<PageDown>"; run = "arrow 100%"; desc = "Move cursor down one page"; }
|
||||||
{ on = [ "g" "g" ]; run = "arrow top"; desc = "Move cursor to the top"; }
|
|
||||||
{ on = [ "g" "e" ]; run = "arrow bot"; desc = "Move cursor to the end"; }
|
|
||||||
{ on = [ "g" "h" ]; run = "cd ~"; desc = "Go to the home directory"; }
|
|
||||||
{ on = [ "g" "n" ]; run = "cd ~/nix-dots"; desc = "Go to the Nix-Dotfiles directory"; }
|
|
||||||
(pkgs.lib.mkIf (hyper.host == "NxACE") { on = [ "g" "s" ]; run = "cd /var/lib/hugo/nx2site"; desc = "Go to the Hugo Nx2.Site directory"; })
|
|
||||||
{ on = [ "g" "n" ]; run = "cd /nix/store"; desc = "Go to the Nix-Store"; }
|
|
||||||
{ on = [ "g" "c" ]; run = "cd ~/.config"; desc = "Go to the config directory"; }
|
|
||||||
{ on = [ "g" "l" ]; run = "cd ~/.locale"; desc = "Go to the .locale directory"; }
|
|
||||||
{ on = [ "g" "C" ]; run = "cd ~/.cache"; desc = "Go to the .cache directory"; }
|
{ on = [ "g" "C" ]; run = "cd ~/.cache"; desc = "Go to the .cache directory"; }
|
||||||
{ on = [ "g" "m" ]; run = "cd ~/media"; desc = "Go to the media (udiskie mount) directory"; }
|
{ on = [ "g" "c" ]; run = "cd ~/.config"; desc = "Go to the config directory"; }
|
||||||
{ on = [ "g" "v" ]; run = "cd ~/Videos"; desc = "Go to the Videos directory"; }
|
|
||||||
{ on = [ "g" "t" ]; run = "cd /tmp"; desc = "Go to the /tmp directory"; }
|
|
||||||
{ on = [ "g" "d" ]; run = "cd ~/Downloads"; desc = "Go to the downloads directory"; }
|
|
||||||
{ on = [ "g" "D" ]; run = "cd ~/Documents"; desc = "Go to the Documents directory"; }
|
{ on = [ "g" "D" ]; run = "cd ~/Documents"; desc = "Go to the Documents directory"; }
|
||||||
{ on = [ "g" "r" ]; run = "cd /"; desc = "Go to the root (/) directory"; }
|
{ on = [ "g" "d" ]; run = "cd ~/Downloads"; desc = "Go to the downloads directory"; }
|
||||||
|
{ on = [ "g" "e" ]; run = "arrow bot"; desc = "Move cursor to the end"; }
|
||||||
|
{ on = [ "g" "g" ]; run = "arrow top"; desc = "Move cursor to the top"; }
|
||||||
|
{ on = [ "g" "h" ]; run = "cd ~"; desc = "Go to the home directory"; }
|
||||||
|
{ on = [ "g" "l" ]; run = "cd ~/.locale"; desc = "Go to the .locale directory"; }
|
||||||
|
{ on = [ "g" "m" ]; run = "cd ~/media"; desc = "Go to the media (udiskie mount) directory"; }
|
||||||
|
{ on = [ "g" "n" ]; run = "cd ~/nix-dots"; desc = "Go to the Nix-Dotfiles directory"; }
|
||||||
|
{ on = [ "g" "N" ]; run = "cd /nix/store"; desc = "Go to the Nix-Store"; }
|
||||||
{ on = [ "g" "p" ]; run = "cd ~/projects"; desc = "Go to the projects directory"; }
|
{ on = [ "g" "p" ]; run = "cd ~/projects"; desc = "Go to the projects directory"; }
|
||||||
|
{ on = [ "g" "r" ]; run = "cd /"; desc = "Go to the root (/) directory"; }
|
||||||
{ on = [ "g" "/" ]; run = "cd /"; desc = "Go to the root (/) directory"; }
|
{ on = [ "g" "/" ]; run = "cd /"; desc = "Go to the root (/) directory"; }
|
||||||
|
{ on = [ "g" "t" ]; run = "cd /tmp"; desc = "Go to the /tmp directory"; }
|
||||||
|
{ on = [ "g" "v" ]; run = "cd ~/Videos"; desc = "Go to the Videos directory"; }
|
||||||
{ on = [ "g" "<Space>" ]; run = "cd --interactive"; desc = "Go to a directory interactively"; }
|
{ on = [ "g" "<Space>" ]; run = "cd --interactive"; desc = "Go to a directory interactively"; }
|
||||||
|
(pkgs.lib.mkIf (hyper.host == "NxACE") { on = [ "g" "s" ]; run = "cd /var/lib/hugo/nx2site"; desc = "Go to the Hugo Nx2.Site directory"; })
|
||||||
# Navigation
|
# Navigation
|
||||||
{ on = "h"; run = "leave"; desc = "Go back to the parent directory"; }
|
{ on = "h"; run = "leave"; desc = "Go back to the parent directory"; }
|
||||||
{ on = "l"; run = "enter"; desc = "Enter the child directory"; }
|
{ on = "l"; run = "enter"; desc = "Enter the child directory"; }
|
||||||
@@ -70,8 +70,7 @@ in {
|
|||||||
{ on = "O"; run = "open --interactive"; desc = "Open selected files interactively"; }
|
{ on = "O"; run = "open --interactive"; desc = "Open selected files interactively"; }
|
||||||
{ on = "<Enter>"; run = "open"; desc = "Open selected files"; }
|
{ on = "<Enter>"; run = "open"; desc = "Open selected files"; }
|
||||||
{ on = "<S-Enter>"; run = "open --interactive"; desc = "Open selected files interactively"; }
|
{ on = "<S-Enter>"; run = "open --interactive"; desc = "Open selected files interactively"; }
|
||||||
{ on = "y"; run = [ ''shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list''
|
{ on = "y"; run = [ ''shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list'' "yank" ]; desc = "Yank selected files (copy)"; }
|
||||||
"yank" ]; desc = "Yank selected files (copy)"; }
|
|
||||||
{ on = "y"; run = "yank"; desc = "Yank selected files (copy)"; }
|
{ on = "y"; run = "yank"; desc = "Yank selected files (copy)"; }
|
||||||
{ on = "x"; run = "yank --cut"; desc = "Yank selected files (cut)"; }
|
{ on = "x"; run = "yank --cut"; desc = "Yank selected files (cut)"; }
|
||||||
{ on = "p"; run = "paste"; desc = "Paste yanked "; }
|
{ on = "p"; run = "paste"; desc = "Paste yanked "; }
|
||||||
@@ -158,6 +157,7 @@ in {
|
|||||||
{ on = "{"; run = "tab_swap -1"; desc = "Swap current tab with previous tab"; }
|
{ on = "{"; run = "tab_swap -1"; desc = "Swap current tab with previous tab"; }
|
||||||
{ on = "{"; run = "tab_swap -1"; desc = "Swap current tab wittab"; }
|
{ on = "{"; run = "tab_swap -1"; desc = "Swap current tab wittab"; }
|
||||||
{ on = "}"; run = "tab_swap 1"; desc = "Swap current tab with next tab"; }
|
{ on = "}"; run = "tab_swap 1"; desc = "Swap current tab with next tab"; }
|
||||||
|
{ on = "<Tab>"; run = "spot"; desc = "Show Spot View"; }
|
||||||
# Tasks
|
# Tasks
|
||||||
{ on = "w"; run = "tasks:show"; desc = "Show Task View"; }
|
{ on = "w"; run = "tasks:show"; desc = "Show Task View"; }
|
||||||
];
|
];
|
||||||
@@ -168,8 +168,8 @@ in {
|
|||||||
{ on = "<Esc>"; run = "close"; desc = "Close Task View"; }
|
{ on = "<Esc>"; run = "close"; desc = "Close Task View"; }
|
||||||
{ on = "c"; run = "cancel"; desc = "Cancel Task"; }
|
{ on = "c"; run = "cancel"; desc = "Cancel Task"; }
|
||||||
{ on = "i"; run = "inspect"; desc = "Inspect Task"; }
|
{ on = "i"; run = "inspect"; desc = "Inspect Task"; }
|
||||||
{ on = "j"; run = "arrow -1"; desc = "Up in list"; }
|
{ on = "k"; run = "arrow -1"; desc = "Up in list"; }
|
||||||
{ on = "k"; run = "arrow 1"; desc = "Down in list"; }
|
{ on = "j"; run = "arrow 1"; desc = "Down in list"; }
|
||||||
{ on = "u"; run = "arrow -5"; desc = "Up in list (fast)"; }
|
{ on = "u"; run = "arrow -5"; desc = "Up in list (fast)"; }
|
||||||
{ on = "d"; run = "arrow 5"; desc = "Down in list (fast)"; }
|
{ on = "d"; run = "arrow 5"; desc = "Down in list (fast)"; }
|
||||||
];
|
];
|
||||||
@@ -179,6 +179,19 @@ in {
|
|||||||
{ on = "?"; run = "help"; desc = "Open help"; }
|
{ on = "?"; run = "help"; desc = "Open help"; }
|
||||||
{ on = "<F1>"; run = "help"; desc = "Open help"; }
|
{ on = "<F1>"; run = "help"; desc = "Open help"; }
|
||||||
];
|
];
|
||||||
|
spot.keymap = [
|
||||||
|
# Spot
|
||||||
|
{ on = "<Tab>"; run = "close"; desc = "Close Spot View"; }
|
||||||
|
{ on = "q"; run = "close"; desc = "Close Spot View"; }
|
||||||
|
{ on = "<Esc>"; run = "close"; desc = "Close Spot View"; }
|
||||||
|
{ on = "k"; run = "arrow -1"; desc = "Up in list"; }
|
||||||
|
{ on = "j"; run = "arrow 1"; desc = "Down in list"; }
|
||||||
|
{ on = "u"; run = "arrow -5"; desc = "Up in list (fast)"; }
|
||||||
|
{ on = "d"; run = "arrow 5"; desc = "Down in list (fast)"; }
|
||||||
|
{ on = [ "g" "g" ]; run = "arrow top"; desc = "Move cursor to the top"; }
|
||||||
|
{ on = [ "g" "e" ]; run = "arrow bot"; desc = "Move cursor to the end"; }
|
||||||
|
{ on = "c"; run = "copy cell"; desc = "Copy Selected Cell"; }
|
||||||
|
];
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
mgr = {
|
mgr = {
|
||||||
@@ -193,74 +206,76 @@ in {
|
|||||||
};
|
};
|
||||||
opener = {
|
opener = {
|
||||||
"edit" = [
|
"edit" = [
|
||||||
{ run = ''hx "$@"''; desc = "helix"; block = true; }
|
{ run = ''hx "$0" "$@"''; desc = "Helix"; block = true; }
|
||||||
{ run = ''codium "$@"''; desc = "code"; orphan = true; }
|
{ run = ''codium "$0" "$@"''; desc = "VS Code"; orphan = true; }
|
||||||
|
{ run = ''antigravity "$0" "$0"''; desc = "Antigravity"; orphan = true; }
|
||||||
|
{ run = ''cat "$0" "$@" | wl-copy''; desc = "Copy Contents"; }
|
||||||
];
|
];
|
||||||
"play" = [
|
"play" = [
|
||||||
{ run = ''mpv "$@"''; desc = "mpv"; orphan = true; }
|
{ run = ''mpv "$0" "$@"''; desc = "mpv"; orphan = true; }
|
||||||
{ run = ''mpv --vf=negate "$@"''; desc = "mpv inverted"; orphan = true; }
|
{ run = ''mpv --vf=negate "$0" "$@"''; desc = "mpv inverted"; orphan = true; }
|
||||||
{ run = ''mediainfo "$1"; echo "Press enter to exit"; read''; block = true; desc = "Show mediainfo"; }
|
{ run = ''mediainfo "$0"; echo "Press enter to return to yazi"; read''; block = true; desc = "Show mediainfo"; }
|
||||||
];
|
];
|
||||||
"archive" = [
|
"archive" = [
|
||||||
{ run = ''unar "$1"''; desc = "Extract here"; }
|
{ run = ''unar "$0" "$@"''; desc = "Extract here"; }
|
||||||
{ run = ''tar -x "$1"''; desc = "tar -x"; }
|
{ run = ''tar -x "$0" "$@"''; desc = "tar -x"; }
|
||||||
{ run = ''unzip "$1"''; desc = "unzip"; }
|
{ run = ''unzip "$0" "$@"''; desc = "unzip"; }
|
||||||
];
|
];
|
||||||
"image" = [
|
"image" = [
|
||||||
{ run = ''imv "$@"''; desc = "imv"; orphan = true; }
|
{ run = ''imv "$0" "$@"''; desc = "imv"; orphan = true; }
|
||||||
{ run = ''gimp "$@"''; desc = "gimp"; orphan = true; }
|
{ run = ''gimp "$0" "$@"''; desc = "gimp"; orphan = true; }
|
||||||
{ run = ''swww img --transition-type wipe --transition-angle 60 --transition-step 120 --transition-fps 120 "$@"''; desc = "swww wallpaper"; }
|
{ run = ''swww img --transition-type wipe --transition-angle 60 --transition-step 120 --transition-fps 120 "$@"''; desc = "swww wallpaper"; }
|
||||||
{ run = ''exiftool "$@"; echo "Press enter to exit"; read''; desc = "View Exif Data"; }
|
{ run = ''exiftool "$0"; echo "Press enter to return to yazi"; read''; desc = "View Exif Data"; }
|
||||||
{ run = ''for f in "$@"; do magick "$f" -auto-orient "''${f%.*}.pdf"; done''; desc = "Convert to PDF"; }
|
{ run = ''for f in "$0"; do magick "$f" -auto-orient "''${f%.*}.pdf"; done''; desc = "Convert to PDF"; }
|
||||||
];
|
];
|
||||||
"svg" = [
|
"svg" = [
|
||||||
{ run = ''inkscape "$@"''; desc = "inkscape"; orphan = true; }
|
{ run = ''inkscape "$0" "$@"''; desc = "inkscape"; orphan = true; }
|
||||||
{ run = ''firefox "$@"''; desc = "firefox"; orphan = true; }
|
{ run = ''firefox "$0" "$@"''; desc = "firefox"; orphan = true; }
|
||||||
];
|
];
|
||||||
"font" = [
|
"font" = [
|
||||||
{ run = ''fontpreview "$@"''; desc = "fontpreview"; orphan = true; }
|
{ run = ''fontpreview "$0" "$@"''; desc = "fontpreview"; orphan = true; }
|
||||||
{ run = ''fontforge "$@"''; desc = "fortforge"; orphan = true; }
|
{ run = ''fontforge "$0" "$@"''; desc = "fortforge"; orphan = true; }
|
||||||
];
|
];
|
||||||
"document" = [
|
"document" = [
|
||||||
{ run = ''zathura "$@"''; desc = "zathura"; orphan = true; }
|
{ run = ''zathura "$0" "$@"''; desc = "zathura"; orphan = true; }
|
||||||
{ run = ''xournal "$@"''; desc = "xournal"; orphan = true; }
|
{ run = ''xournal "$0" "$@"''; desc = "xournal"; orphan = true; }
|
||||||
{ run = ''firefox "$@"''; desc = "firefox"; orphan = true; }
|
{ run = ''firefox "$0" "$@"''; desc = "firefox"; orphan = true; }
|
||||||
{ run = ''nxgs flip "$@"''; desc = "nxgs flip"; }
|
{ run = ''nxgs flip "$0" "$@"''; desc = "nxgs flip"; }
|
||||||
{ run = ''nxgs rotate "$@"''; desc = "nxgs rotate"; }
|
{ run = ''nxgs rotate "$0" "$@"''; desc = "nxgs rotate"; }
|
||||||
{ run = ''nxgs interactive-merge "$@"''; block = true; desc = "nxgs merge"; }
|
{ run = ''nxgs interactive-merge "$0" "$@"''; block = true; desc = "nxgs merge"; }
|
||||||
];
|
];
|
||||||
"browser" = [
|
"browser" = [
|
||||||
{ run = ''firefox "$@"''; desc = "firefox"; orphan = true; }
|
{ run = ''firefox "$0" "$@"''; desc = "firefox"; orphan = true; }
|
||||||
{ run = ''zen "$@"''; desc = "zen"; orphan = true; }
|
{ run = ''chromium --enable-features=UseOzonePlatform --ozone-platform=wayland "$0" "$@"''; desc = "chromium"; orphan = true; }
|
||||||
{ run = ''chromium --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"''; desc = "chromium"; orphan = true; }
|
{ run = ''w3m "$0" "$@"''; desc = "w3m"; }
|
||||||
{ run = ''w3m "$@"''; desc = "w3m"; }
|
{ run = ''lynx "$0" "$@"''; desc = "lynx"; }
|
||||||
{ run = ''lynx "$@"''; desc = "lynx"; }
|
|
||||||
];
|
];
|
||||||
"office" = [
|
"office" = [
|
||||||
{ run = ''libreoffice "$@"''; desc = "libreoffice"; orphan = true; }
|
{ run = ''libreoffice "$0" "$@"''; desc = "libreoffice"; orphan = true; }
|
||||||
{ run = ''libreoffice --view "$@"''; desc = "libreoffice read-only"; orphan = true; }
|
{ run = ''libreoffice --view "$0" "$@"''; desc = "libreoffice read-only"; orphan = true; }
|
||||||
];
|
];
|
||||||
"shell" = [
|
"shell" = [
|
||||||
{ run = ''bash -c "$@"''; desc = "bash -c"; }
|
{ run = ''bash -c "$0"; echo "Press enter to return to yazi"; read''; desc = "bash -c"; }
|
||||||
{ run = ''fish -c "$@"''; desc = "fish -c"; }
|
{ run = ''fish -c "$0"; echo "Press enter to return to yazi"; read''; desc = "fish -c"; }
|
||||||
{ run = ''sh -c "$@"''; desc = "sh -c"; }
|
{ run = ''sh -c "$0"; echo "Press enter to return to yazi"; read''; desc = "sh -c"; }
|
||||||
];
|
];
|
||||||
"python" = [
|
"python" = [
|
||||||
{ run = ''python "$@"''; desc = "python"; }
|
{ run = ''python "$@"; echo "Press enter to return to yazi"; read''; desc = "python"; block = true; }
|
||||||
];
|
];
|
||||||
"directory" = [
|
"directory" = [
|
||||||
{ run = ''lazygit "$@"''; desc = "python"; }
|
{ run = ''lazygit "$0"''; desc = "lazygit"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
open.rules = [
|
open.rules = [
|
||||||
{ mime = "text/html"; use = [ "edit" "browser" ]; }
|
{ mime = "text/html"; use = [ "edit" "browser" ]; }
|
||||||
{ mime = "text/htm"; use = [ "edit" "browser" ]; }
|
{ mime = "text/htm"; use = [ "edit" "browser" ]; }
|
||||||
{ mime = "text/x-python"; use = "python"; }
|
{ mime = "text/x-script.python"; use = [ "edit" "python" ]; }
|
||||||
|
{ mime = "text/script.python"; use = [ "edit" "python" ]; }
|
||||||
{ mime = "text/*"; use = "edit"; }
|
{ mime = "text/*"; use = "edit"; }
|
||||||
{ mime = "text"; use = "edit"; }
|
{ mime = "text"; use = "edit"; }
|
||||||
|
|
||||||
{ mine = "inode/x-empty"; use = "edit"; }
|
{ mine = "inode/x-empty"; use = "directory"; }
|
||||||
{ mine = "inode/directory"; use = "edit"; }
|
{ mine = "inode/directory"; use = "directory"; }
|
||||||
|
|
||||||
{ mime = "image/*"; use = "image"; }
|
{ mime = "image/*"; use = "image"; }
|
||||||
{ mime = "image/svg"; use = [ "image" "edit" ]; }
|
{ mime = "image/svg"; use = [ "image" "edit" ]; }
|
||||||
@@ -311,8 +326,6 @@ in {
|
|||||||
tabs = {
|
tabs = {
|
||||||
active = { fg = secondary.dark; bg = secondary.base; };
|
active = { fg = secondary.dark; bg = secondary.base; };
|
||||||
inactive = { fg = secondary.base; bg = secondary.dark; };
|
inactive = { fg = secondary.base; bg = secondary.dark; };
|
||||||
# sep_inner =
|
|
||||||
# sep_outer =
|
|
||||||
};
|
};
|
||||||
status = {
|
status = {
|
||||||
separator_open = " "; #"";
|
separator_open = " "; #"";
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
home = {
|
home = {
|
||||||
username = hyper.user;
|
username = hyper.user;
|
||||||
homeDirectory = hyper.home;
|
homeDirectory = hyper.home;
|
||||||
stateVersion = pkgs.version;
|
stateVersion = hyper.pkgs-version;
|
||||||
};
|
};
|
||||||
xdg = {
|
xdg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
BIN
splash.png
BIN
splash.png
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 MiB |
BIN
splash.webp
Normal file
BIN
splash.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 200 KiB |
4
wsl.nix
4
wsl.nix
@@ -1,7 +1,6 @@
|
|||||||
{ pkgs, ... }@all: with all; {
|
{ pkgs, ... }@all: with all; {
|
||||||
imports = [
|
imports = [
|
||||||
inputs.nixos-wsl.nixosModules.default
|
inputs.nixos-wsl.nixosModules.default
|
||||||
./system-modules/base-packages.nix
|
|
||||||
./system-modules/docker.nix
|
./system-modules/docker.nix
|
||||||
./system-modules/gc.nix
|
./system-modules/gc.nix
|
||||||
./system-modules/gpg.nix
|
./system-modules/gpg.nix
|
||||||
@@ -9,7 +8,8 @@
|
|||||||
./system-modules/nixd.nix
|
./system-modules/nixd.nix
|
||||||
./system-modules/users.nix
|
./system-modules/users.nix
|
||||||
];
|
];
|
||||||
system.stateVersion = pkgs.version;
|
environment.systemPackages = import ./system-modules/base-packages.nix pkgs;
|
||||||
|
system.stateVersion = hypr.pkgs-version;
|
||||||
wsl = {
|
wsl = {
|
||||||
defaultUser = hyper.user;
|
defaultUser = hyper.user;
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user