From 70a591094678f3303843be8bef0141aac0abaeb9 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 25 Nov 2024 12:39:19 +0100 Subject: [PATCH] core password-store: define fileModule only if file is secret --- nixosModules/clanCore/vars/secret/password-store.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nixosModules/clanCore/vars/secret/password-store.nix b/nixosModules/clanCore/vars/secret/password-store.nix index 19320c832..f743460aa 100644 --- a/nixosModules/clanCore/vars/secret/password-store.nix +++ b/nixosModules/clanCore/vars/secret/password-store.nix @@ -43,9 +43,11 @@ in clan.core.vars.settings = lib.mkIf (config.clan.core.vars.settings.secretStore == "password-store") { - fileModule = file: { - path = "/run/secrets/${file.config.generatorName}/${file.config.name}"; - }; + fileModule = + file: + lib.mkIf file.config.secret { + path = "/run/secrets/${file.config.generatorName}/${file.config.name}"; + }; secretUploadDirectory = lib.mkDefault "/etc/secret-vars"; secretModule = "clan_cli.vars.secret_modules.password_store"; };