From 22bb8f50f545b5372d378aa56db8935af7b50a42 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 15 Mar 2023 22:51:19 +0300 Subject: [PATCH] docker-stack: fix mkIf function --- machines/modules/docker-stack.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/modules/docker-stack.nix b/machines/modules/docker-stack.nix index eee03ef..18017ab 100644 --- a/machines/modules/docker-stack.nix +++ b/machines/modules/docker-stack.nix @@ -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;