flake/nixos/nix/gc.nix

20 lines
310 B
Nix
Raw Normal View History

2023-09-19 00:17:43 +00:00
{ ... }:
{
nix = {
# hard linking
settings.auto-optimise-store = true;
# auto delete older NixOS builds
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
optimise = {
automatic = true;
dates = [ "03:45" ];
};
};
}