Skip to content

Commit 14a0c8c

Browse files
committed
Add automatic gc
1 parent d472ea7 commit 14a0c8c

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

nix/modules/nixos/server.nix

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,22 @@ in
1515
mailutils
1616
];
1717

18-
nix.settings = {
19-
substituters = [
20-
"https://strykeforce.cachix.org"
21-
];
18+
nix = {
19+
gc = {
20+
automatic = true;
21+
dates = "weekly";
22+
options = "--delete-older-than 14d";
23+
randomizedDelaySec = "1h";
24+
};
25+
settings = {
26+
substituters = [
27+
"https://strykeforce.cachix.org"
28+
];
2229

23-
trusted-public-keys = [
24-
"strykeforce.cachix.org-1:+ux184cQfS4lruf/lIzs9WDMtOkJIZI2FQHfz5QEIrE="
25-
];
30+
trusted-public-keys = [
31+
"strykeforce.cachix.org-1:+ux184cQfS4lruf/lIzs9WDMtOkJIZI2FQHfz5QEIrE="
32+
];
33+
};
2634
};
2735

2836
}

0 commit comments

Comments
 (0)