From 03eacf6c968c82ce3c540240acf4959cb6fb0a25 Mon Sep 17 00:00:00 2001 From: Ivan Petkov Date: Sun, 21 Dec 2025 09:47:56 -0800 Subject: [PATCH] photoprism: fix LoadCredential syntax LoadCredential separates the name and path with `:` not `=`. Previously starting the service with a configured password file would emit a systemd warning that the credential is being ignored --- nixos/modules/services/web-apps/photoprism.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/photoprism.nix b/nixos/modules/services/web-apps/photoprism.nix index fc61ba7b0439..0e2bc11de04e 100644 --- a/nixos/modules/services/web-apps/photoprism.nix +++ b/nixos/modules/services/web-apps/photoprism.nix @@ -135,10 +135,10 @@ in ]; LoadCredential = [ - (lib.optionalString (cfg.passwordFile != null) "PHOTOPRISM_ADMIN_PASSWORD_FILE=${cfg.passwordFile}") + (lib.optionalString (cfg.passwordFile != null) "PHOTOPRISM_ADMIN_PASSWORD_FILE:${cfg.passwordFile}") (lib.optionalString ( cfg.databasePasswordFile != null - ) "PHOTOPRISM_DATABASE_PASSWORD=${cfg.databasePasswordFile}") + ) "PHOTOPRISM_DATABASE_PASSWORD:${cfg.databasePasswordFile}") ]; LockPersonality = true;