summaryrefslogtreecommitdiff
path: root/hosts/kay/modules/network.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-01-08 10:15:42 +0530
committersinanmohd <sinan@sinanmohd.com>2024-01-08 10:15:42 +0530
commit24936d35ff46dc3b041d4914125179edc039c674 (patch)
tree24d1cbafe87fefa7aabe5d7314f9a40e218e719c /hosts/kay/modules/network.nix
parent58469dcc1d51441510d1c3fc39f5034db55ed28b (diff)
kay/network/voip: init
Diffstat (limited to 'hosts/kay/modules/network.nix')
-rw-r--r--hosts/kay/modules/network.nix15
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 = {