System Maintenance Settings¶
Checks if system maintenance and cleanup settings are properly configured
Checks¶
system_generations_limit
- The retention of old system generations should be limited, as these are protected from garbage collection and consume disk space unnecessarily.journald_limits
- journald space limits should be configured to avoid clogging the disk with logs.nix_gc
- Regular Nix Garbage Collection should be enablednix_optimise_automatic
- Nix store optimisation should be enabled
Details¶
system_generations_limit
¶
Description: The retention of old system generations should be limited, as these are protected from garbage collection and consume disk space unnecessarily.
How to fix:
Set boot.systemd.generations = 10
or less for systemd-boot, or boot.grub.generations = 10
or less for GRUB
journald_limits
¶
Description: journald space limits should be configured to avoid clogging the disk with logs.
How to fix:
Set either SystemKeepFree
or both SystemMaxUse
and SystemMaxFileSize
in services.journald.extraConfig
nix_gc
¶
Description: Regular Nix Garbage Collection should be enabled
How to fix:
Set nix.gc.automatic = true
nix_optimise_automatic
¶
Description: Nix store optimisation should be enabled
How to fix:
Set either nix.settings.auto-optimise-store
or nix.optimise.automatic