From 4fd31d6de86c14f245ca937a0f4b18eb3717a421 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 27 Mar 2025 15:39:21 +0100 Subject: [PATCH] nixy script update --- home/scripts/nixy/default.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/home/scripts/nixy/default.nix b/home/scripts/nixy/default.nix index e378a2d..dbb6cd8 100644 --- a/home/scripts/nixy/default.nix +++ b/home/scripts/nixy/default.nix @@ -28,6 +28,7 @@ let "󰚰;Update;nixy update" ";Collect Garbage;nixy gc" "󰍜;Clean Boot Menu;nixy cb" + ";List generation;nixy listgen" "󰌌;Hyprland Keybindings;nvim ${configDirectory}/docs/KEYBINDINGS-HYPRLAND.md" "󰋩;Wallpapers;zen https://github.com/anotherhadi/nixy-wallpapers" ) @@ -59,17 +60,8 @@ let cd ${configDirectory} && sudo nix-collect-garbage -d elif [[ $1 == "cb" ]];then sudo /run/current-system/bin/switch-to-configuration boot - elif [[ $1 == "remote" ]];then - cd ~/.config/nixos && git add . && git commit -m "update" && git push - ssh jack -S -C "cd /home/hadi/.config/nixos && git pull && sudo -S nixos-rebuild switch --flake ~/.config/nixos#jack" - elif [[ $1 == "loop" ]];then - while true; do - nixy - echo "Press enter to continue, e to exit" - read -n 1 REPLY - clear - [[ $REPLY == "e" ]] && exit 0 - done + elif [[ $1 == "listgen" ]];then + sudo nix-env -p /nix/var/nix/profiles/system --list-generations else echo "Unknown argument" fi