diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-01-08 10:15:42 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-01-08 10:15:42 +0530 |
commit | 24936d35ff46dc3b041d4914125179edc039c674 (patch) | |
tree | 24d1cbafe87fefa7aabe5d7314f9a40e218e719c /hosts/kay/modules | |
parent | 58469dcc1d51441510d1c3fc39f5034db55ed28b (diff) |
kay/network/voip: init
Diffstat (limited to 'hosts/kay/modules')
-rw-r--r-- | hosts/kay/modules/network.nix | 15 |
1 files changed, 12 insertions, 3 deletions
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 = { |