flake/nixos/nix/gc.nix
2023-09-19 08:17:43 +08:00

19 lines
310 B
Nix
Executable file

{ ... }:
{
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" ];
};
};
}