From 88277eab135004bdf13773fdc978a484ac821f42 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 12 Sep 2024 20:28:02 -0400 Subject: [PATCH] Infini-DL360: setup infiniband --- hosts/Infini-DL360/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + ''; + }; }