update things...

This commit is contained in:
zack 2024-09-18 15:32:57 -04:00
parent ae2ea826ea
commit 380a0a7e0e
No known key found for this signature in database
GPG key ID: 5F873416BCF59F35
7 changed files with 338 additions and 65 deletions

View file

@ -1,11 +1,15 @@
{writeShellScriptBin, ...}:
{
writeShellScriptBin,
pkgs,
...
}:
writeShellScriptBin "rebuild" ''
set -e
pushd ~/nixos/
alejandra . &>/dev/null
${pkgs.alejandra}/bin/alejandra . &>/dev/null
git add .
git pull origin main
echo "[REBUILD]: rebuilding nixos"
nh os switch
${pkgs.nh}/bin/nh os switch
popd
''