This commit is contained in:
zack 2024-07-25 16:36:38 -04:00
parent 308501c55c
commit b90726b2d6
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35

View file

@ -4,10 +4,8 @@ writeShellScriptBin "rebuild" ''
pushd ~/nixos/ pushd ~/nixos/
alejandra . &>/dev/null alejandra . &>/dev/null
git add . git add .
git pull origin main
echo "[REBUILD]: rebuilding nixos" echo "[REBUILD]: rebuilding nixos"
nh os switch nh os switch
gen=$(nixos-rebuild list-generations | grep current)
git commit -am "$gen"
git pull origin main
popd popd
'' ''