refactor: abstract app user creation via custom options
This commit is contained in:
parent
1403b1f9c0
commit
d742671460
7 changed files with 52 additions and 36 deletions
|
|
@ -36,15 +36,9 @@ in {
|
|||
"/srv/photo" = mkMount "192.168.0.11:/mnt/BIG/MEDIA/PHOTO/ARCHIVE";
|
||||
};
|
||||
|
||||
users.users.jellyfin = {
|
||||
uid = lib.mkForce UID;
|
||||
isSystemUser = true;
|
||||
group = config.users.groups.apps.name;
|
||||
extraGroups = [
|
||||
config.users.groups.media.name
|
||||
];
|
||||
home = "/var/empty";
|
||||
shell = null;
|
||||
homelab.appUsers.jellyfin = {
|
||||
uid = UID;
|
||||
extraGroups = [ config.users.groups.media.name ];
|
||||
};
|
||||
|
||||
# Make sure the Docker network exists.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue