blob: 3aac7fc210494778d3361192606121770163e786 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ inputs, lib, ... }:
{
nix = {
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 7d";
randomizedDelaySec = "5min";
};
settings = {
auto-optimise-store = lib.mkDefault true;
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "root" "@wheel" ];
warn-dirty = false;
};
};
systemd.user.services."nix-gc" = {
description = "Garbage collection for user profiles";
script = "/run/current-system/sw/bin/nix-collect-garbage --delete-older-than 7d";
startAt = "daily";
};
}
|