From 667e9707140323b90c124704df7093dd4922060c Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 7 Feb 2024 16:17:34 -0800 Subject: [PATCH] Only build if enabled --- immich-container.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/immich-container.nix b/immich-container.nix index 2beba84..d85e8a5 100644 --- a/immich-container.nix +++ b/immich-container.nix @@ -55,7 +55,7 @@ in { }; }; - config = { + config = mkIf cfg.enable { fudo.secrets.host-secrets."${hostname}".immichEnv = { source-file = mkEnvFile { DB_HOSTNAME = "database";