bind network interfaces

This commit is contained in:
2026-01-24 18:54:13 +01:00
parent 74fd4e758a
commit 505acdc5cc
3 changed files with 18 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
{ pkgs, ... }: {
boot.kernelModules = [ "bonding" ];
networking.bonds.bond0 = {
interfaces = [ "enp1s0" "enp2s0" ];
driverOptions = {
mode = "802.3ad";
miimon = "100";
lacp_rate = "fast";
xmit_hash_policy = "layer3+4";
};
};
networking.interfaces.enp1s0.useDHCP = false;
networking.interfaces.enp2s0.useDHCP = false;
networking.interfaces.bond0.useDHCP = true;
}
-1
View File
@@ -4,7 +4,6 @@
imports =
[ # Include the results of the hardware scan...
./hardware-configuration.nix
./network.nix
# ...and additional configurations...
./var_reg.nix
View File