Files
nixconf/bond-network.nix
T
2026-01-25 16:52:39 +01:00

19 lines
414 B
Nix

{ 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;
}