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.

48 lines
816 B

2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
11 months ago
2 years ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. { nodeIndex, nodeConfig, ... }:
  2. { lib, config, nodes, ... }:
  3. with lib;
  4. {
  5. imports = [
  6. ./hardware.nix
  7. ./disk.nix
  8. ./network.nix
  9. ./users.nix
  10. ./slurm.nix
  11. ./builder.nix
  12. ];
  13. _module.args = {
  14. inherit nodeIndex nodeConfig;
  15. };
  16. deployment = {
  17. targetHost = "10.32.47.${toString (100 + nodeIndex)}";
  18. targetUser = "root";
  19. tags = [ "node" ];
  20. };
  21. hpc.node = {
  22. enable = true;
  23. id = nodeIndex;
  24. };
  25. hpc.netinstall.enable = true;
  26. networking.hostName = config.hpc.node.name;
  27. networking.timeServers = [
  28. "manager.${config.networking.domain}"
  29. ];
  30. nix.settings = {
  31. substituters = [
  32. "http://cache.${config.networking.domain}"
  33. ];
  34. trusted-public-keys = [
  35. (fileContents nodes."manager".config.gather.parts."cache/key".path)
  36. ];
  37. };
  38. }