MyNixOS website logo
option

services.logrotate.configFile

Override the configuration file used by logrotate. By default, NixOS generates one automatically from .

Declarations
Type
path
Default
''
  A configuration file automatically generated by NixOS.
''
Example
pkgs.writeText "logrotate.conf" ''
  missingok
  "/var/log/*.log" {
    rotate 4
    weekly
  }
'';