nixos/nebula: Remove default punch option in favor of setting it through the settings option

This commit is contained in:
Tim Van Baak 2021-03-01 20:21:27 -08:00
parent 511465ade0
commit 17430ea40a

View File

@ -85,14 +85,6 @@ in
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 {
type = types.bool;
default = false;
@ -164,9 +156,6 @@ in
host = netCfg.listen.host;
port = netCfg.listen.port;
};
punchy = {
punch = netCfg.punch;
};
tun = {
disabled = netCfg.tun.disable;
dev = if (netCfg.tun.device != null) then netCfg.tun.device else "nebula.${netName}";