nixos-greynix/git-pull.sh
2024-11-14 15:22:26 +08:00

20 lines
447 B
Bash
Executable file

# add things to git
#git add .
#git commit -m "Update NixOS config."
#git push origin main
# pull new stuff down
#git pull ?
echo "rebuilding" $(hostname) "from git repo"
sudo nixos-rebuild switch --flake '.#$(hostname)'
# update nixos
# sudo nixos-rebuild switch --flake .#HOST
#sudo nixos-rebuild switch --flake '.#greynix'
#sudo nixos-rebuild switch --flake '.#bluenix'
# flake update
# sudo nix flake update
# check on things
# git status