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
|
|
@ -30,12 +30,8 @@ in {
|
|||
virtualisation.containers.enable = true;
|
||||
};
|
||||
|
||||
users.users.gitea = {
|
||||
uid = lib.mkForce UID;
|
||||
isSystemUser = true;
|
||||
group = config.users.groups.apps.name;
|
||||
home = "/var/empty";
|
||||
shell = null;
|
||||
homelab.appUsers.gitea = {
|
||||
uid = UID;
|
||||
};
|
||||
|
||||
# Use filesystem mounts because rootless containers otherwise don't have access to the mount path (nested in docker directories).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue