old-nixos-greynix/rebuild.sh
2024-11-20 20:19:04 +08:00

5 lines
129 B
Bash
Executable file

echo "rebuilding" $(hostname) "from git repo"
git pull origin main
# build it
sudo nixos-rebuild switch --flake '.#$(hostname)'