diff options
Diffstat (limited to '')
| -rw-r--r-- | hosts/common/core/nix.nix | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/hosts/common/core/nix.nix b/hosts/common/core/nix.nix index 14252d8..608425f 100644 --- a/hosts/common/core/nix.nix +++ b/hosts/common/core/nix.nix @@ -24,6 +24,13 @@ in {    }; -  systemd.services."nix-daemon".environment.TMPDIR = build-tmp; +  systemd = { +    services."nix-daemon".environment.TMPDIR = build-tmp; +    user.services."nix-gc" = { +      description = "Garbage collection for user profiles"; +      script = "/run/current-system/sw/bin/nix-collect-garbage --delete-older-than 30d"; +      startAt = "daily"; +    }; +  }  } | 
