diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-01-10 17:50:22 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-01-10 22:16:24 +0530 |
commit | e1edcac1f8938c1e150716f0a9bed74aa8aef9f2 (patch) | |
tree | f8ba618254608ea9fbd0259e9ac015cefa18490c /hosts | |
parent | 1d13b05a10c337560da52d3127caaea16bc04260 (diff) |
kay/network/voip/dhcp: disable ipv6, don't set default gateway
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/kay/modules/network.nix | 13 |
1 files 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 = { |