flake/nixos/profiles/common/core/nix/gc.nix

20 lines
335 B
Nix
Raw Normal View History

2024-01-15 04:18:06 +00:00
{
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"];
2023-09-19 00:17:43 +00:00
};
};
}