config

NixOS config
Log | Files | Refs | README | LICENSE

commit c8a02dbb579d75389d245c667afc76b9b9bfc0cf (tree)
parent 105c211406300ef5182cd58a90c425ac2c568235
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date:   Wed, 27 Dec 2023 23:58:51 +0200

the service starts

Diffstat:
Mdata.nix | 2++
Mhosts/vno1-oh2/configuration.nix | 20+++++++++++++++++---
2 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/data.nix b/data.nix @@ -16,6 +16,8 @@ rec { jakstpub = 505; certget = 506; + + photoprism = 507; }; ports = { diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix @@ -1,6 +1,6 @@ { config, - lib, + #lib, pkgs, myData, ... @@ -649,8 +649,12 @@ }; photoprism.serviceConfig = { - ProtectHome = lib.mkForce "tmpfs"; - BindReadOnlyPaths = ["/home/motiejus/Pictures"]; + #ProtectHome = lib.mkForce "tmpfs"; + #BindPaths = ["/home/motiejus/Pictures"]; + #DynamicUser = lib.mkForce false; + #LockPersonality = lib.mkForce false; + #PrivateDevices = lib.mkForce false; + #PrivateUsers = lib.mkForce false; }; }; @@ -668,6 +672,16 @@ }; }; + users = let + uidgid = myData.uidgid.photoprism; + in { + groups.photoprism.gid = uidgid; + users.photoprism = { + group = "photoprism"; + uid = uidgid; + }; + }; + environment.systemPackages = with pkgs; [ imapsync geoipWithDatabase