Loading nixos/modules/services/web-apps/photoprism.nix +15 −3 Original line number Diff line number Diff line Loading @@ -89,6 +89,18 @@ in ''; }; user = lib.mkOption { type = lib.types.str; default = "photoprism"; description = "User under which photoprism runs."; }; group = lib.mkOption { type = lib.types.str; default = "photoprism"; description = "Group under which photoprism runs."; }; package = lib.mkPackageOption pkgs "photoprism" { }; settings = lib.mkOption { Loading @@ -110,11 +122,11 @@ in serviceConfig = { Restart = "on-failure"; User = "photoprism"; Group = "photoprism"; User = cfg.user; Group = cfg.group; DynamicUser = true; StateDirectory = "photoprism"; WorkingDirectory = "/var/lib/photoprism"; WorkingDirectory = cfg.storagePath; RuntimeDirectory = "photoprism"; ReadWritePaths = [ cfg.originalsPath Loading Loading
nixos/modules/services/web-apps/photoprism.nix +15 −3 Original line number Diff line number Diff line Loading @@ -89,6 +89,18 @@ in ''; }; user = lib.mkOption { type = lib.types.str; default = "photoprism"; description = "User under which photoprism runs."; }; group = lib.mkOption { type = lib.types.str; default = "photoprism"; description = "Group under which photoprism runs."; }; package = lib.mkPackageOption pkgs "photoprism" { }; settings = lib.mkOption { Loading @@ -110,11 +122,11 @@ in serviceConfig = { Restart = "on-failure"; User = "photoprism"; Group = "photoprism"; User = cfg.user; Group = cfg.group; DynamicUser = true; StateDirectory = "photoprism"; WorkingDirectory = "/var/lib/photoprism"; WorkingDirectory = cfg.storagePath; RuntimeDirectory = "photoprism"; ReadWritePaths = [ cfg.originalsPath Loading