nixos/nebula: Remove default punch option in favor of setting it through the settings option
This commit is contained in:
parent
511465ade0
commit
17430ea40a
|
@ -85,14 +85,6 @@ in
|
||||||
description = "Port number to listen on.";
|
description = "Port number to listen on.";
|
||||||
};
|
};
|
||||||
|
|
||||||
punch = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = true;
|
|
||||||
description = ''
|
|
||||||
Continues to punch inbound/outbound at a regular interval to avoid expiration of firewall nat mappings.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
tun.disable = mkOption {
|
tun.disable = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -164,9 +156,6 @@ in
|
||||||
host = netCfg.listen.host;
|
host = netCfg.listen.host;
|
||||||
port = netCfg.listen.port;
|
port = netCfg.listen.port;
|
||||||
};
|
};
|
||||||
punchy = {
|
|
||||||
punch = netCfg.punch;
|
|
||||||
};
|
|
||||||
tun = {
|
tun = {
|
||||||
disabled = netCfg.tun.disable;
|
disabled = netCfg.tun.disable;
|
||||||
dev = if (netCfg.tun.device != null) then netCfg.tun.device else "nebula.${netName}";
|
dev = if (netCfg.tun.device != null) then netCfg.tun.device else "nebula.${netName}";
|
||||||
|
|
Loading…
Reference in a new issue