Update NixOS config.
This commit is contained in:
parent
b1d9bf3e4c
commit
bdbfeff0c9
3 changed files with 9 additions and 6 deletions
|
@ -1,11 +1,9 @@
|
||||||
# add things to git
|
|
||||||
#git add .
|
|
||||||
#git commit -m "Update NixOS config."
|
|
||||||
#git push origin main
|
|
||||||
|
|
||||||
# pull new stuff down
|
# pull new stuff down
|
||||||
#git pull ?
|
git pull origin main
|
||||||
echo "rebuilding" $(hostname) "from git repo"
|
echo "rebuilding" $(hostname) "from git repo"
|
||||||
|
git pull origin main
|
||||||
|
|
||||||
|
# build it
|
||||||
sudo nixos-rebuild switch --flake '.#$(hostname)'
|
sudo nixos-rebuild switch --flake '.#$(hostname)'
|
||||||
|
|
||||||
# update nixos
|
# update nixos
|
5
rebuild.sh
Executable file
5
rebuild.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
echo "rebuilding" $(hostname) "from git repo"
|
||||||
|
git pull origin main
|
||||||
|
|
||||||
|
# build it
|
||||||
|
sudo nixos-rebuild switch --flake '.#$(hostname)'
|
Loading…
Add table
Add a link
Reference in a new issue