blade: tweak networking

This commit is contained in:
Luke Granger-Brown 2021-02-24 19:58:15 +00:00
parent 86f042a55b
commit a7094217ba
2 changed files with 10 additions and 18 deletions

View file

@ -16,10 +16,9 @@ in {
networking = { networking = {
hostName = "blade-janeway"; hostName = "blade-janeway";
hostId = "3a62390f"; hostId = "3a62390f";
bonds.bond0.interfaces = [ bridges.br-mgmt.interfaces = [ "enp4s0f0" ];
"enp4s0f0" "enp4s0f1" bridges.br-storage.interfaces = [ "enp4s0f2" ];
"enp5s0f0" "enp5s0f1" bridges.br-ext.interfaces = [ "enp5s0f0" ];
];
interfaces.br-ext.ipv4.addresses = [{ interfaces.br-ext.ipv4.addresses = [{
address = "192.168.1.180"; address = "192.168.1.180";
prefixLength = 24; prefixLength = 24;

View file

@ -11,7 +11,7 @@ in {
]; ];
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "pata_atiixp" "uhci_hcd" "be2iscsi" "usb_storage" "usbhid" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "pata_atiixp" "uhci_hcd" "be2iscsi" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.kernelModules = [ "kvm-amd" "acpi_power_meter" ]; boot.kernelModules = [ "kvm-amd" "acpi_power_meter" "acpi_ipmi" "ipmi_si" ];
boot.kernelParams = [ "mitigations=off" ]; boot.kernelParams = [ "mitigations=off" ];
fileSystems = let fileSystems = let
@ -39,19 +39,12 @@ in {
domain = "house.as205479.net"; domain = "house.as205479.net";
nameservers = ["8.8.8.8" "8.8.4.4"]; nameservers = ["8.8.8.8" "8.8.4.4"];
useDHCP = false; useDHCP = false;
bonds.bond0 = { bridges = let
driverOptions = { br = interfaces: { inherit interfaces; rstp = false; };
mode = "802.3ad"; in {
miimon = "100"; br-mgmt = br [ "enp4s0f0" ];
lacp_rate = "fast"; br-storage = br [ "enp4s0f1" ];
}; br-ext = br [ "enp4s0f2" ];
interfaces = [
"enp4s0f0" "enp4s0f1"
];
};
bridges.br-ext = {
interfaces = [ "bond0" ];
rstp = false;
}; };
defaultGateway = "192.168.1.5"; defaultGateway = "192.168.1.5";