mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12:09 +02:00
nixy script update
This commit is contained in:
@@ -28,6 +28,7 @@ let
|
|||||||
";Update;nixy update"
|
";Update;nixy update"
|
||||||
";Collect Garbage;nixy gc"
|
";Collect Garbage;nixy gc"
|
||||||
";Clean Boot Menu;nixy cb"
|
";Clean Boot Menu;nixy cb"
|
||||||
|
";List generation;nixy listgen"
|
||||||
";Hyprland Keybindings;nvim ${configDirectory}/docs/KEYBINDINGS-HYPRLAND.md"
|
";Hyprland Keybindings;nvim ${configDirectory}/docs/KEYBINDINGS-HYPRLAND.md"
|
||||||
";Wallpapers;zen https://github.com/anotherhadi/nixy-wallpapers"
|
";Wallpapers;zen https://github.com/anotherhadi/nixy-wallpapers"
|
||||||
)
|
)
|
||||||
@@ -59,17 +60,8 @@ let
|
|||||||
cd ${configDirectory} && sudo nix-collect-garbage -d
|
cd ${configDirectory} && sudo nix-collect-garbage -d
|
||||||
elif [[ $1 == "cb" ]];then
|
elif [[ $1 == "cb" ]];then
|
||||||
sudo /run/current-system/bin/switch-to-configuration boot
|
sudo /run/current-system/bin/switch-to-configuration boot
|
||||||
elif [[ $1 == "remote" ]];then
|
elif [[ $1 == "listgen" ]];then
|
||||||
cd ~/.config/nixos && git add . && git commit -m "update" && git push
|
sudo nix-env -p /nix/var/nix/profiles/system --list-generations
|
||||||
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
|
|
||||||
else
|
else
|
||||||
echo "Unknown argument"
|
echo "Unknown argument"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user