mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user