From 4a14d1e05d434a820e78e06ef1592eb2360baeeb Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Wed, 1 Oct 2025 22:33:04 +0200 Subject: [PATCH] nixos/photoprism: disallow passwords in store --- nixos/modules/services/web-apps/photoprism.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/photoprism.nix b/nixos/modules/services/web-apps/photoprism.nix index 22087ca6de3f..f33899ce22f9 100644 --- a/nixos/modules/services/web-apps/photoprism.nix +++ b/nixos/modules/services/web-apps/photoprism.nix @@ -33,7 +33,12 @@ in enable = lib.mkEnableOption "Photoprism web server"; passwordFile = lib.mkOption { - type = lib.types.nullOr lib.types.path; + type = lib.types.nullOr ( + lib.types.pathWith { + inStore = false; + absolute = true; + } + ); default = null; description = '' Admin password file. @@ -41,7 +46,12 @@ in }; databasePasswordFile = lib.mkOption { - type = lib.types.nullOr lib.types.path; + type = lib.types.nullOr ( + lib.types.pathWith { + inStore = false; + absolute = true; + } + ); default = null; description = '' Database password file.