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

  1. { pkgs, lib, config, ... }:
  2. with lib;
  3. {
  4. systemd.services."opensm" = {
  5. unitConfig = {
  6. Before = [ "network.target" "remote-fs-pre.target" ];
  7. ConditionPathExists = [ "/sys/class/infiniband_mad/abi_version" ];
  8. };
  9. serviceConfig = {
  10. Type = "simple";
  11. ExecStart = "${pkgs.opensm}/bin/opensm --guid '0x0002c9030052188b'";
  12. Restart = "on-failure";
  13. RestartSec = "5s";
  14. };
  15. wantedBy = [ "network-online.target" ];
  16. };
  17. }