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