l 2: add automatic garbage collection

This commit is contained in:
lassulus 2016-06-25 19:41:49 +02:00
parent f6d5a9716f
commit 6b8c65b070
2 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,7 @@ with config.krebs.lib;
../2configs/retiolum.nix
../2configs/nixpkgs.nix
../2configs/binary-cache/client.nix
../2configs/gc.nix
./backups.nix
{
users.extraUsers =

8
lass/2configs/gc.nix Normal file
View File

@ -0,0 +1,8 @@
{ config, ... }:
with config.krebs.lib;
{
nix.gc = {
automatic = ! elem config.krebs.build.host.name [ "prism" "mors" ];
};
}