diff --git a/hosts/Infini-DL360/default.nix b/hosts/Infini-DL360/default.nix index c830f46..f5b916f 100644 --- a/hosts/Infini-DL360/default.nix +++ b/hosts/Infini-DL360/default.nix @@ -171,4 +171,12 @@ KbdInteractiveAuthentication yes PermitEmptyPasswords yes ''; + + systemd.services.setup-infiniband = { + wantedBy = [ "network.target" ]; + script = '' + echo "eth" > /sys/bus/pci/devices/0000:04:00.0/mlx4_port1 + echo "eth" > /sys/bus/pci/devices/0000:04:00.0/mlx4_port2 + ''; + }; }