tried to fix wireguard config

This commit is contained in:
Leyla Becker 2025-04-01 22:33:18 -05:00
parent 89c8cff8a9
commit e293c83841
2 changed files with 81 additions and 41 deletions

View file

@ -34,25 +34,13 @@
networking = {
hostName = "defiant"; # Define your hostname.
hostId = "c51763d6";
useNetworkd = true;
};
systemd.network = {
enable = true;
netdevs = {
"10-bond0" = {
netdevConfig = {
Kind = "bond";
Name = "bond0";
};
bondConfig = {
Mode = "802.3ad";
TransmitHashPolicy = "layer3+4";
};
};
};
networks = {
"30-eno1" = {
matchConfig.Name = "eno1";
@ -62,22 +50,6 @@
matchConfig.Name = "eno2";
networkConfig.Bond = "bond0";
};
"40-bond0" = {
matchConfig.Name = "bond0";
linkConfig = {
RequiredForOnline = "degraded-carrier";
RequiredFamilyForOnline = "any";
};
networkConfig.DHCP = "yes";
address = [
"192.168.1.10"
];
gateway = ["192.168.1.1"];
dns = ["192.168.1.1"];
};
};
};