浏览代码

Garbage collection

Johan Rong 6 月之前
父节点
当前提交
f28db746b1
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      nixos/features/system/basic.nix

+ 6 - 0
nixos/features/system/basic.nix

@@ -50,6 +50,12 @@
     };
   };
 
+  nix.gc = {
+    automatic = true;
+    dates = "weekly";
+    options = "--delete-older-than 7d";
+  };
+
   environment.variables = {
     QT_QPA_PLATFORMTHEME = "qt6ct";
   };