From 299b0621ade6d536dfc3625f2aadb2ea66ea6df4 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Thu, 1 Jan 2026 18:57:02 +0800 Subject: [PATCH] chore: Use regular network settings instead of bond --- nixos/configurations/Tytonidae/networking.nix | 74 ++++++++++--------- 1 file changed, 41 insertions(+), 33 deletions(-) diff --git a/nixos/configurations/Tytonidae/networking.nix b/nixos/configurations/Tytonidae/networking.nix index f840de5..3ad400c 100644 --- a/nixos/configurations/Tytonidae/networking.nix +++ b/nixos/configurations/Tytonidae/networking.nix @@ -20,49 +20,56 @@ }; }; }; - netdevs = { - "20-bond0" = { - netdevConfig = { - Kind = "bond"; - Name = "bond0"; - }; - bondConfig = { - Mode = "balance-alb"; - MIIMonitorSec = "1s"; - PrimaryReselectPolicy = "better"; - }; - }; - }; + # netdevs = { + # "20-bond0" = { + # netdevConfig = { + # Kind = "bond"; + # Name = "bond0"; + # }; + # bondConfig = { + # Mode = "balance-alb"; + # MIIMonitorSec = "1s"; + # PrimaryReselectPolicy = "better"; + # }; + # }; + # }; networks = { "20-eno2" = { networkConfig = { - Bond = "bond0"; - PrimarySlave = true; - }; - matchConfig = { - Name = "eno2"; - }; - }; - "20-wlan0" = { - networkConfig = { - Bond = "bond0"; - }; - matchConfig = { - Name = "wlan0"; - }; - }; - "20-bond0" = { - networkConfig = { - DHCP = "yes"; + # Bond = "bond0"; + # PrimarySlave = true; + + DHCP = "ipv4"; IPv6AcceptRA = true; }; linkConfig = { RequiredForOnline = "routable"; }; matchConfig = { - Name = "bond0"; + Name = "eno2"; }; }; + # "20-wlan0" = { + # networkConfig = { + # # Bond = "bond0"; + # }; + # matchConfig = { + # Name = "wlan0"; + # }; + # }; + + # "20-bond0" = { + # networkConfig = { + # DHCP = "yes"; + # IPv6AcceptRA = true; + # }; + # linkConfig = { + # RequiredForOnline = "routable"; + # }; + # matchConfig = { + # Name = "bond0"; + # }; + # }; }; }; @@ -80,7 +87,8 @@ Enabled = true; }; General = { - EnableNetworkConfiguration = false; + # EnableNetworkConfiguration = false; + EnableNetworkConfiguration = true; }; Settings = { AutoConnect = true;