nixos/nebula: conditionally provision the nebula user
This commit is contained in:
parent
b52a8f67dd
commit
9f9e7c181c
1 changed files with 9 additions and 7 deletions
|
@ -192,13 +192,15 @@ in
|
|||
networking.firewall.allowedUDPPorts = [ cfg.listen.port ];
|
||||
|
||||
# Create the service user and its group.
|
||||
users.users."nebula" = {
|
||||
name = "nebula";
|
||||
group = "nebula";
|
||||
description = "Nebula service user";
|
||||
isSystemUser = true;
|
||||
packages = [ cfg.package ];
|
||||
users = mkIf cfg.tun.disable {
|
||||
users.nebula = {
|
||||
group = "nebula";
|
||||
description = "Nebula service user";
|
||||
isSystemUser = true;
|
||||
packages = [ cfg.package ];
|
||||
};
|
||||
|
||||
groups.nebula = {};
|
||||
};
|
||||
users.groups."nebula" = {};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue