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 ];
|
networking.firewall.allowedUDPPorts = [ cfg.listen.port ];
|
||||||
|
|
||||||
# Create the service user and its group.
|
# Create the service user and its group.
|
||||||
users.users."nebula" = {
|
users = mkIf cfg.tun.disable {
|
||||||
name = "nebula";
|
users.nebula = {
|
||||||
group = "nebula";
|
group = "nebula";
|
||||||
description = "Nebula service user";
|
description = "Nebula service user";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
packages = [ cfg.package ];
|
packages = [ cfg.package ];
|
||||||
|
};
|
||||||
|
|
||||||
|
groups.nebula = {};
|
||||||
};
|
};
|
||||||
users.groups."nebula" = {};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue