mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
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:
parent
9527896251
commit
6012556a3d
@ -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 = { };
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user