box: add photoprism user to overwrite the systemd dyn user

This commit is contained in:
Aaron Bieber 2023-07-12 08:15:52 -06:00
parent c927fdc31d
commit 93f0a6548a
No known key found for this signature in database

View File

@ -180,9 +180,18 @@ in {
members = ["qbit"];
};
systemd.services.photoprism.serviceConfig = {
SupplementaryGroups = "photos";
BindPaths = "/media/pictures/photoprism";
users.groups.photoprism = {
name = "photoprism";
gid = 986;
};
users.users.photoprism = {
uid = 991;
name = "photoprism";
isSystemUser = true;
hashedPassword = null;
group = "photoprism";
shell = "/bin/sh";
openssh.authorizedKeys.keys = pubKeys;
};
services = {