Cleanup nix when updating
This commit is contained in:
3
home.nix
3
home.nix
@@ -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
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user