MyNixOS website logo
option

services.logrotate.checkConfig

Whether the config should be checked at build time.

Some options are not checkable at build time because of the build sandbox: for example, the test does not know about existing files and system users are not known. These limitations mean we must adjust the file for tests (missingok is forced and users are replaced by dummy users), so tests are complemented by a logrotate-checkconf service that is enabled by default. This extra check can be disabled by disabling it at the systemd level with the systemd.services.logrotate-checkconf.enable option.

Conversely there are still things that might make this check fail incorrectly (e.g. a file path where we don't have access to intermediate directories): in this case you can disable the failing check with this option.

Declarations
Type
boolean
Default
true