summary refs log tree commit diff
path: root/modules/nix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nix.nix')
-rw-r--r--modules/nix.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/nix.nix b/modules/nix.nix
index d98f64d..cde962a 100644
--- a/modules/nix.nix
+++ b/modules/nix.nix
@@ -2,6 +2,17 @@
 
 {
   nix = {
+    optimise = {
+      automatic = true;
+      dates = [ "06:00" ];
+    };
+
+    gc = {
+      automatic = true;
+      dates = "weekly";
+      options = "--delete-older-than 14d";
+    };
+
     # add compat scripts to the environment,
     # to allow nixos-option to find the configuration
     nixPath = [