summaryrefslogtreecommitdiff
path: root/hosts/muhammed/configuration.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-07-06 22:37:56 +0200
committerLinnnus <[email protected]>2024-07-06 22:38:14 +0200
commit8d4b769b9976a0b244a94836b935199b36c63433 (patch)
treedd2f09de83e703be766d14faa25413a4b6010b78 /hosts/muhammed/configuration.nix
parenta58eb58090932d154ce4e465d186557fe8503873 (diff)
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.
Diffstat (limited to 'hosts/muhammed/configuration.nix')
-rw-r--r--hosts/muhammed/configuration.nix6
1 files changed, 6 insertions, 0 deletions
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;