From c2c440768aa3b04f8e218d00c21d6a2f18a1c26f Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Thu, 28 Mar 2024 22:51:59 +0000 Subject: [PATCH] Cleanup nix when updating --- home.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home.nix b/home.nix index 85a7f547..88d1212e 100644 --- a/home.nix +++ b/home.nix @@ -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 '') ];