mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 13:43:56 -05:00
nix: optimise gc persistently
This commit is contained in:
parent
5de752533a
commit
7432c000e1
|
@ -126,10 +126,10 @@
|
||||||
nix = {
|
nix = {
|
||||||
optimise.automatic = true;
|
optimise.automatic = true;
|
||||||
gc = {
|
gc = {
|
||||||
# Delete generations older than 7 days.
|
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "daily";
|
dates = "daily";
|
||||||
options = "--delete-older-than 3d";
|
options = "--delete-older-than 3d";
|
||||||
|
persistent = true;
|
||||||
randomizedDelaySec = "60min";
|
randomizedDelaySec = "60min";
|
||||||
};
|
};
|
||||||
# Run GC when there is less than 100MiB left.
|
# Run GC when there is less than 100MiB left.
|
||||||
|
|
Loading…
Reference in a new issue