the service starts

This commit is contained in:
Motiejus Jakštys 2023-12-27 23:58:51 +02:00
parent 105c211406
commit c8a02dbb57
2 changed files with 19 additions and 3 deletions

View File

@ -16,6 +16,8 @@ rec {
jakstpub = 505; jakstpub = 505;
certget = 506; certget = 506;
photoprism = 507;
}; };
ports = { ports = {

View File

@ -1,6 +1,6 @@
{ {
config, config,
lib, #lib,
pkgs, pkgs,
myData, myData,
... ...
@ -649,8 +649,12 @@
}; };
photoprism.serviceConfig = { photoprism.serviceConfig = {
ProtectHome = lib.mkForce "tmpfs"; #ProtectHome = lib.mkForce "tmpfs";
BindReadOnlyPaths = ["/home/motiejus/Pictures"]; #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; [ environment.systemPackages = with pkgs; [
imapsync imapsync
geoipWithDatabase geoipWithDatabase