services/wezterm-mux-server: revert to system user for service

I don't know how to completely make it isolated AND working.
This commit is contained in:
Gabriel Arazas 2023-10-14 11:05:17 +08:00
parent 9527896251
commit 6012556a3d
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -39,9 +39,8 @@ in
# Give it some tough love.
serviceConfig = {
User = "wezterm";
Group = "wezterm";
DynamicUser = true;
User = config.users.users.wezterm.name;
Group = config.users.groups.wezterm.name;
LockPersonality = true;
NoNewPrivileges = true;
@ -80,5 +79,15 @@ in
RestrictNamespaces = true;
};
};
users.users.wezterm = {
description = "Wezterm system user";
home = "/var/lib/wezterm";
createHome = true;
group = config.users.groups.wezterm.name;
isSystemUser = true;
};
users.groups.wezterm = { };
};
}