mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 23:29:08 +01:00
nebula: Move advertise address/port options
This commit is contained in:
parent
ef17aad9d1
commit
b4f740e7be
3 changed files with 24 additions and 27 deletions
|
|
@ -51,22 +51,6 @@ in
|
|||
};
|
||||
|
||||
isLighthouse = lib.mkEnableOption "";
|
||||
|
||||
advertise = {
|
||||
address = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.nonEmptyStr;
|
||||
default =
|
||||
if config.custom.networking.underlay.isPublic then
|
||||
config.custom.networking.underlay.address
|
||||
else
|
||||
null;
|
||||
};
|
||||
port = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.port;
|
||||
default = if cfg.advertise.address != null then config.custom.services.nebula.listenPort else null;
|
||||
};
|
||||
};
|
||||
|
||||
role = lib.mkOption {
|
||||
type = lib.types.enum [
|
||||
"client"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue