Skip to content

System Maintenance Settings

Checks if system maintenance and cleanup settings are properly configured

Checks

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