summaryrefslogtreecommitdiffstats
path: root/lass/2configs/gc.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-06-25 19:41:49 +0200
committerlassulus <lass@aidsballs.de>2016-06-25 19:41:49 +0200
commit6b8c65b070caaa15e04cff05782e9715f8874ddf (patch)
treee9851b7bbd22836d3c98a68ca24d92d42bfdcf53 /lass/2configs/gc.nix
parentf6d5a9716f8a9dbefbeae19e43b5324f90cb543b (diff)
l 2: add automatic garbage collection
Diffstat (limited to 'lass/2configs/gc.nix')
-rw-r--r--lass/2configs/gc.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/lass/2configs/gc.nix b/lass/2configs/gc.nix
new file mode 100644
index 000000000..8762ad95e
--- /dev/null
+++ b/lass/2configs/gc.nix
@@ -0,0 +1,8 @@
+{ config, ... }:
+
+with config.krebs.lib;
+{
+ nix.gc = {
+ automatic = ! elem config.krebs.build.host.name [ "prism" "mors" ];
+ };
+}