From 1f4ab8c8bda636040188f70f77568a9ae67e74ca Mon Sep 17 00:00:00 2001 From: Tootbrute Date: Thu, 14 Nov 2024 15:22:26 +0800 Subject: [PATCH] Update NixOS config. --- git-pull.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 git-pull.sh diff --git a/git-pull.sh b/git-pull.sh new file mode 100755 index 0000000..f47b7b8 --- /dev/null +++ b/git-pull.sh @@ -0,0 +1,20 @@ +# 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