diff --git a/modules/services/wgautomesh.nix b/modules/services/wgautomesh.nix index e127348..2cd8ec9 100644 --- a/modules/services/wgautomesh.nix +++ b/modules/services/wgautomesh.nix @@ -4,15 +4,16 @@ lib, cfg, ... -}: { +}: let + # helper vars to prettify + currentHost = lyn.network.hosts.${networking.hostName}; + wireguardPort = currentHost.wg.port; +in { opt.useIPv6 = lib.mkOption { type = lib.types.bool; description = "Whether to use IPv6. Defaults to true"; default = true; }; - # helper vars to prettify - currentHost = lyn.network.hosts.${networking.hostName}; - wireguardPort = currentHost.wg.port; networking.wireguard.interfaces.wg0 = { ips = ["${lyn.network.IPv4.wg_subnet}"];