From 86dd410cc83e1a2a22ff0264326ab14963f7afce Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Sat, 28 Sep 2024 12:41:58 -0400 Subject: [PATCH] added ioit-vlan --- .vscode/settings.json | 4 ++++ systems/jeeves/networking.nix | 24 ++++++++++++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a48e31a..4e612e6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -84,6 +84,7 @@ "hwloc", "INITDB", "iocharset", + "ioit", "iperf", "isal", "jnoortheen", @@ -116,6 +117,8 @@ "nemo", "neofetch", "nerdfonts", + "netdev", + "netdevs", "Networkd", "networkmanager", "newtabpage", @@ -170,6 +173,7 @@ "relatime", "Rhosts", "ripgrep", + "routable", "rspace", "rtkit", "rycee", diff --git a/systems/jeeves/networking.nix b/systems/jeeves/networking.nix index b7546bd..392747f 100644 --- a/systems/jeeves/networking.nix +++ b/systems/jeeves/networking.nix @@ -7,31 +7,43 @@ }; systemd.network = { + enable = true; + + netdevs = { + "20-ioit-vlan" = { + netdevConfig = { + Kind = "vlan"; + Name = "ioit-vlan"; + }; + vlanConfig.Id = 20; + }; + }; + networks = { "10-1GB_Primary" = { matchConfig.Name = "enp98s0f0"; DHCP = "yes"; + vlan = [ "ioit-vlan" ]; + linkConfig.RequiredForOnline = "routable"; }; - }; - networks = { "10-1GB_Secondary" = { matchConfig.Name = "enp98s0f1"; DHCP = "yes"; }; - }; - networks = { "10-10GB_Primary" = { matchConfig.Name = "enp97s0f0np0"; DHCP = "yes"; linkConfig.RequiredForOnline = "routable"; }; - }; - networks = { "10-10GB_Secondary" = { matchConfig.Name = "enp97s0f1np1"; DHCP = "yes"; }; + "40-ioit-vlan" = { + matchConfig.Name = "ioit-vlan"; + DHCP = "yes"; + }; }; };