Skip to content

Commit

Permalink
nix: run {gc,optimse} more sparsely
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Oct 18, 2024
1 parent 3f5231f commit 9386847
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion nix/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6371,9 +6371,21 @@ prefs.yandexExcludedDirs
};
gc = {
automatic = true;
# Aoid auto gc on startup.
# Sometimes I try to build something unsuccessfully, and
# nix gced the partial result. This is undesirable.
# Note this effectively means that auto gc will never run,
# I keep my machine running in the evening.
dates = "2:15";
persistent = false;
randomizedDelaySec = "1h";
options = "--delete-older-than 60d";
};
optimise = { automatic = true; };
optimise = {
automatic = true;
# It is better that optimise comes after gc.
dates = [ "3:45" ];
};
nixPath = [ "/etc/nix/path" ];

registry.nixpkgs.flake = inputs.nixpkgs;
Expand Down

0 comments on commit 9386847

Please sign in to comment.