Skip to content

Commit 6fa79e3

Browse files
vm(shared): add storage optimizer
1 parent 176b623 commit 6fa79e3

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

machines/vm/shared.nix

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,17 @@
1717
# Allow unfree packages.
1818
nixpkgs.config.allowUnfree = true;
1919

20-
# Auto garbage collector.
21-
nix.gc = {
22-
automatic = true;
23-
options = "--delete-older-than 14d";
20+
# Auto garbage collector and storage optimizer.
21+
nix = {
22+
gc = {
23+
automatic = true;
24+
dates = "Fri *-*-* 19:00:00";
25+
options = "--delete-older-than 7d";
26+
};
27+
optimise = {
28+
automatic = true;
29+
dates = [ "Fri *-*-* 19:00:00" ];
30+
};
2431
};
2532

2633
# Enable new nix cli and flakes.

0 commit comments

Comments
 (0)