From 8d4b769b9976a0b244a94836b935199b36c63433 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sat, 6 Jul 2024 22:37:56 +0200 Subject: muhammed: Enable nightly Nix GC The Nix store was growing quite large. It was consuming a lot of disk space with some really old stuff. In the future, I might need to tweak it a bit more; it seems a bit too aggressive right now. Even recently used projects require rebuilding. --- hosts/muhammed/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hosts/muhammed/configuration.nix') diff --git a/hosts/muhammed/configuration.nix b/hosts/muhammed/configuration.nix index 96564fb..f3908b2 100644 --- a/hosts/muhammed/configuration.nix +++ b/hosts/muhammed/configuration.nix @@ -64,6 +64,12 @@ }; }; + # Enable nightly GC of Nix store. + nix.gc = { + automatic = true; + interval = {Hour = 3;}; + }; + # System-specific version info. home-manager.users.linus.home.stateVersion = "22.05"; system.stateVersion = 4; -- cgit v1.2.3