about summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/photoprism.nix
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2024-01-02 23:02:41 +0100
committerPascal Bach <pascal.bach@nextrem.ch>2024-01-04 14:28:47 +0100
commit2c86e5321c8dd8204860a7e3d078e439980debae (patch)
tree7fecb6ebc84bfeda1f2cba8acae66bdbcc7d22ba /nixos/modules/services/web-apps/photoprism.nix
parentebcb6e60cbea8cdd21f6d5c3b738d9fbe9fb19d3 (diff)
downloadnixlib-2c86e5321c8dd8204860a7e3d078e439980debae.tar
nixlib-2c86e5321c8dd8204860a7e3d078e439980debae.tar.gz
nixlib-2c86e5321c8dd8204860a7e3d078e439980debae.tar.bz2
nixlib-2c86e5321c8dd8204860a7e3d078e439980debae.tar.lz
nixlib-2c86e5321c8dd8204860a7e3d078e439980debae.tar.xz
nixlib-2c86e5321c8dd8204860a7e3d078e439980debae.tar.zst
nixlib-2c86e5321c8dd8204860a7e3d078e439980debae.zip
nixos/photoprism: allow writing to originalsPath, importPath and
storagePath
Diffstat (limited to 'nixos/modules/services/web-apps/photoprism.nix')
-rw-r--r--nixos/modules/services/web-apps/photoprism.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/photoprism.nix b/nixos/modules/services/web-apps/photoprism.nix
index e25b03484424..23868903b023 100644
--- a/nixos/modules/services/web-apps/photoprism.nix
+++ b/nixos/modules/services/web-apps/photoprism.nix
@@ -104,6 +104,7 @@ in
         StateDirectory = "photoprism";
         WorkingDirectory = "/var/lib/photoprism";
         RuntimeDirectory = "photoprism";
+        ReadWritePaths = [ cfg.originalsPath cfg.importPath cfg.storagePath ];
 
         LoadCredential = lib.optionalString (cfg.passwordFile != null)
           "PHOTOPRISM_ADMIN_PASSWORD:${cfg.passwordFile}";