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.

35 lines
696 B

1 year ago
  1. { pkgs, lib, config, nodes, ... }:
  2. with lib;
  3. {
  4. services.slurm = {
  5. clusterName = "mogli";
  6. controlMachine = "manager";
  7. nodeName = map
  8. (node: "${node.config.networking.hostName} CPUs=64")
  9. (filter
  10. (node: elem "node" node.config.deployment.tags)
  11. (attrValues nodes));
  12. partitionName = [
  13. "all Nodes=ALL AllowGroups=cluster Default=YES MaxTime=INFINITE State=UP"
  14. ];
  15. extraConfig = ''
  16. MailProg=${pkgs.coreutils}/bin/false
  17. '';
  18. };
  19. services.munge = {
  20. enable = true;
  21. password = config.sops.secrets."munge/password".path;
  22. };
  23. sops.secrets."munge/password" = {
  24. sopsFile = ./secrets.yaml;
  25. owner = "munge";
  26. };
  27. }