Cleanup nix when updating

This commit is contained in:
2024-03-28 22:51:59 +00:00
parent 1ec0e057ac
commit c2c440768a

View File

@@ -17,7 +17,6 @@
obsidian
signal-desktop
fragments
ollama
# Note to self: This config does not include games/benchmarks. I'm using flatpak for those.
@@ -54,6 +53,7 @@
(writeShellScriptBin "reload" ''
nix-channel --update
echo "rebuilding home.nix..."
home-manager switch &> switch.log || (cat switch.log | grep --color error && false)
'')
@@ -94,6 +94,7 @@
fi
nix-channel --update
nix-collect-garbage --delete-older-than 7d
home-manager switch
'')
];