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.

41 lines
918 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. };
  17. services.munge = {
  18. enable = true;
  19. password = config.sops.secrets."munge/password".path;
  20. };
  21. sops.secrets."munge/password" = {
  22. sopsFile = ./secrets.yaml;
  23. owner = "munge";
  24. };
  25. # Have a VIP group for users with unlimited queues
  26. users.groups."vip" = {
  27. members = [
  28. "fdai2856"
  29. "fdai0159"
  30. "fdai0231"
  31. ];
  32. };
  33. }