mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 00:39:07 +01:00
overlay, nebula: Add functionality to accommodate port forwarding
This commit is contained in:
parent
d9a85536a2
commit
96c4dbe626
2 changed files with 28 additions and 9 deletions
|
|
@ -51,6 +51,22 @@ 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