docker-stack: fix mkIf function
This commit is contained in:
parent
b870a54f1f
commit
22bb8f50f5
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ in
|
|||
description = lib.mdDoc "Docker stacks to deploy using systemd services.";
|
||||
};
|
||||
|
||||
config = lib.mkIfattrNames (cfg.stacks != { }) {
|
||||
config = lib.mkIf (cfg.stacks != { }) {
|
||||
systemd.timers = lib.mapAttrs' (n: v: lib.nameValuePair "docker-stack-${n}" (mkStackTimer n)) cfg.stacks;
|
||||
systemd.services = lib.mapAttrs' (n: v: lib.nameValuePair "docker-stack-${n}" (mkStackService n v)) cfg.stacks;
|
||||
|
||||
|
|
Loading…
Reference in a new issue