flake/nixos/nix/gc.nix

24 lines
347 B
Nix
Raw Normal View History

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