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.