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.

45 lines
991 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
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=32")
  9. (filter # Filter all nodes that have a tag "node" being a compute node
  10. (node: elem "node" node.config.deployment.tags)
  11. (attrValues nodes));
  12. partitionName = [
  13. "all Nodes=ALL AllowGroups=cluster Default=YES MaxTime=6:00:00 State=UP"
  14. "vip Nodes=ALL AllowGroups=vip Default=NO MaxTime=INFINITE State=UP"
  15. ];
  16. extraConfig = ''
  17. MailProg=${pkgs.coreutils}/bin/false
  18. '';
  19. };
  20. services.munge = {
  21. enable = true;
  22. password = config.sops.secrets."munge/password".path;
  23. };
  24. sops.secrets."munge/password" = {
  25. sopsFile = ./secrets.yaml;
  26. owner = "munge";
  27. };
  28. # Have a VIP group for users with unlimited queues
  29. users.groups."vip" = {
  30. members = [
  31. "fdai2856"
  32. "fdai0159"
  33. "fdai0231"
  34. ];
  35. };
  36. }