Update NixOS config.

This commit is contained in:
Elias Gasparis 2024-11-20 20:19:04 +08:00
parent b1d9bf3e4c
commit bdbfeff0c9
3 changed files with 9 additions and 6 deletions

View file

@ -1,11 +1,9 @@
# add things to git
#git add .
#git commit -m "Update NixOS config."
#git push origin main
# pull new stuff down
#git pull ?
git pull origin main
echo "rebuilding" $(hostname) "from git repo"
git pull origin main
# build it
sudo nixos-rebuild switch --flake '.#$(hostname)'
# update nixos

5
rebuild.sh Executable file
View file

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