services/logrotate: init for custom state path
This commit is contained in:
parent
fa9a4b9ae0
commit
6c422a41c6
|
@ -21,6 +21,7 @@ let
|
||||||
services.btrfs-auto-scrub
|
services.btrfs-auto-scrub
|
||||||
services.dbus
|
services.dbus
|
||||||
services.journald
|
services.journald
|
||||||
|
services.logrotate
|
||||||
services.nscd
|
services.nscd
|
||||||
services.openssh
|
services.openssh
|
||||||
services.zram-generator
|
services.zram-generator
|
||||||
|
|
14
nixos/profiles/services/logrotate/default.nix
Normal file
14
nixos/profiles/services/logrotate/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.logrotate = {
|
||||||
|
enable = true;
|
||||||
|
extraArgs = [
|
||||||
|
"-s"
|
||||||
|
"/var/lib/logrotate/status"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services.logrotate.serviceConfig = {
|
||||||
|
StateDirectory = "logrotate";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue