From 93f0a6548a4a707135c6ff9616e993ea7ee317c7 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Wed, 12 Jul 2023 08:15:52 -0600 Subject: [PATCH] box: add photoprism user to overwrite the systemd dyn user --- hosts/box/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/hosts/box/default.nix b/hosts/box/default.nix index c86452b..5738c9d 100644 --- a/hosts/box/default.nix +++ b/hosts/box/default.nix @@ -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 = {