logrotate: run through nixpkgs-fmt
Running once now will make further patches formatting easier
This commit is contained in:
@@ -163,13 +163,16 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
assertions = mapAttrsToList (name: pathOpts:
|
assertions = mapAttrsToList
|
||||||
{ assertion = (pathOpts.user != null) == (pathOpts.group != null);
|
(name: pathOpts:
|
||||||
|
{
|
||||||
|
assertion = (pathOpts.user != null) == (pathOpts.group != null);
|
||||||
message = ''
|
message = ''
|
||||||
If either of `services.logrotate.paths.${name}.user` or `services.logrotate.paths.${name}.group` are specified then *both* must be specified.
|
If either of `services.logrotate.paths.${name}.user` or `services.logrotate.paths.${name}.group` are specified then *both* must be specified.
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
) cfg.paths;
|
)
|
||||||
|
cfg.paths;
|
||||||
|
|
||||||
systemd.services.logrotate = {
|
systemd.services.logrotate = {
|
||||||
description = "Logrotate Service";
|
description = "Logrotate Service";
|
||||||
|
|||||||
Reference in New Issue
Block a user