mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 18:19:09 +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.
|
# Give it some tough love.
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "wezterm";
|
User = config.users.users.wezterm.name;
|
||||||
Group = "wezterm";
|
Group = config.users.groups.wezterm.name;
|
||||||
DynamicUser = true;
|
|
||||||
|
|
||||||
LockPersonality = true;
|
LockPersonality = true;
|
||||||
NoNewPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
@ -80,5 +79,15 @@ in
|
|||||||
RestrictNamespaces = true;
|
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