services.logrotate.configFile
NixOS option
Override the configuration file used by logrotate. By default, NixOS generates one automatically from services.logrotate.settings.
type: absolute pathDefault
'' A configuration file automatically generated by NixOS. ''
Example
declared in: nixos/modules/services/logging/logrotate.nixView source on NixOS/nixpkgs →pkgs.writeText "logrotate.conf" ''
missingok
"/var/log/*.log" {
rotate 4
weekly
}
'';