{ pkgs, lib, config, ... }: with lib; { systemd.services."opensm" = { unitConfig = { Before = [ "network.target" "remote-fs-pre.target" ]; ConditionPathExists = [ "/sys/class/infiniband_mad/abi_version" ]; }; serviceConfig = { Type = "simple"; ExecStart = "${pkgs.opensm}/bin/opensm --guid '0x0002c9030052188b'"; }; wantedBy = [ "network-online.target" ]; }; }