diff options
| author | caley <u65487754@gmail.com> | 2026-05-28 14:28:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-28 14:28:37 +0200 |
| commit | 87bcb80c4f0e8e711f8ce3f75abef02f981ea911 (patch) | |
| tree | 825f3eb54e68095aff98c3f8ee54dab3191f0d21 /nixos | |
| parent | bcb6114e097345dcf21cb6007ccac8170161d8e5 (diff) | |
Update cat.nix
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/cat.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nixos/cat.nix b/nixos/cat.nix index 124ec10..7953f2d 100644 --- a/nixos/cat.nix +++ b/nixos/cat.nix @@ -193,6 +193,7 @@ home.packages = with pkgs; [ *config*) exec "config" ;; *settings*) exec "settings" ;; *wallpaper*) exec "wallpaper" ;; + *ssh*) exec "ssh" ;; *power*) exec "power" ;; esac '') @@ -202,15 +203,16 @@ home.packages = with pkgs; [ choice=$(echo -e "$options" | ${pkgs.rofi}/bin/rofi -dmenu -i -p ">") case "$choice" in - *nix*) kitty sudo nvim "/etc/nixos/configuration.nix" ;; - *cat*) kitty sudo nvim "/etc/nixos/cat.nix" ;; - *hypr*) kitty sudo nvim "/etc/nixos/hypr.nix" ;; - *vim*) kitty sudo nvim "/etc/nixos/vim.nix" ;; + *nix*) ${pkgs.kitty}/bin/kitty -e sudo nvim "/etc/nixos/configuration.nix" ;; + *cat*) ${pkgs.kitty}/bin/kitty -e sudo nvim "/etc/nixos/cat.nix" ;; + *hypr*) ${pkgs.kitty}/bin/kitty -e sudo nvim "/etc/nixos/hypr.nix" ;; + *vim*) ${pkgs.kitty}/bin/kitty -e sudo nvim "/etc/nixos/vim.nix" ;; *rofi*) ${pkgs.zed-editor}/bin/zeditor "$HOME/.config/rofi/" ;; *zed*) ${pkgs.zed-editor}/bin/zeditor "$HOME/.config/zed/settings.json" ;; *csgo*) ${pkgs.zed-editor}/bin/zeditor "$HOME/.local/share/Steam/steamapps/common/csgo legacy/csgo/cfg/autoexec.cfg" ;; *cs2*) ${pkgs.zed-editor}/bin/zeditor "$HOME/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg/autoexec.cfg" ;; esac + '') (writeShellScriptBin "power" '' options="lock\nlogout\nreboot\nshutdown" |
