flake/nixos/nix/gc.nix

22 lines
347 B
Nix
Raw Normal View History

2023-09-19 00:17:43 +00:00
{ ... }:
{
nix = {
2023-10-15 00:51:56 +00:00
### Auto hard linking
2023-09-19 00:17:43 +00:00
settings.auto-optimise-store = true;
2023-10-15 00:51:56 +00:00
### Automatically 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" ];
};
};
}