From 24936d35ff46dc3b041d4914125179edc039c674 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 8 Jan 2024 10:15:42 +0530 Subject: kay/network/voip: init --- hosts/kay/modules/network.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'hosts/kay') diff --git a/hosts/kay/modules/network.nix b/hosts/kay/modules/network.nix index 154667d..f5e5d5b 100644 --- a/hosts/kay/modules/network.nix +++ b/hosts/kay/modules/network.nix @@ -2,6 +2,7 @@ let inetVlan = 722; + voipVlan = 1849; wanInterface = "enp4s0"; nameServer = "1.0.0.1"; domain = config.userdata.domain; @@ -20,10 +21,18 @@ in }; networking = { - vlans.wan = { - id = inetVlan; - interface = wanInterface; + vlans = { + wan = { + id = inetVlan; + interface = wanInterface; + }; + voip = { + id = voipVlan; + interface = wanInterface; + }; }; + + interfaces."voip".useDHCP = true; }; services = { -- cgit v1.2.3