From e1edcac1f8938c1e150716f0a9bed74aa8aef9f2 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 10 Jan 2024 17:50:22 +0530 Subject: kay/network/voip/dhcp: disable ipv6, don't set default gateway --- hosts/kay/modules/network.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hosts/kay/modules/network.nix b/hosts/kay/modules/network.nix index f5e5d5b..b14cb9a 100644 --- a/hosts/kay/modules/network.nix +++ b/hosts/kay/modules/network.nix @@ -20,19 +20,26 @@ in "misc/namecheap.com" = {}; }; - networking = { + networking = let + voipVlanIface = "voip"; + in { vlans = { wan = { id = inetVlan; interface = wanInterface; }; - voip = { + ${voipVlanIface} = { id = voipVlan; interface = wanInterface; }; }; - interfaces."voip".useDHCP = true; + interfaces.${voipVlanIface}.useDHCP = true; + dhcpcd.extraConfig = '' + interface ${voipVlanIface} + ipv4only + nogateway + ''; }; services = { -- cgit v1.2.3