summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = {