NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
469 B

{ 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'";
Restart = "on-failure";
RestartSec = "5s";
};
wantedBy = [ "network-online.target" ];
};
}