Skip to content

Commit 04d0885

Browse files
darwin: add storage optimizer
1 parent 6fa79e3 commit 04d0885

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

machines/darwin/default.nix

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@
1313
# Allow unfree packages.
1414
nixpkgs.config.allowUnfree = true;
1515

16-
# Auto garbage collector.
17-
nix.gc = {
18-
automatic = true;
19-
options = "--delete-older-than 14d";
16+
# Auto garbage collector and storage optimizer.
17+
nix = {
18+
gc = {
19+
automatic = true;
20+
options = "--delete-older-than 7d";
21+
};
22+
optimise = {
23+
automatic = true;
24+
};
2025
};
2126

2227
# Enable new nix cli and flakes.

0 commit comments

Comments
 (0)