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.

47 lines
798 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year 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. ];
  12. _module.args = {
  13. inherit nodeIndex nodeConfig;
  14. };
  15. deployment = {
  16. targetHost = "10.32.47.${toString (100 + nodeIndex)}";
  17. targetUser = "root";
  18. tags = [ "node" ];
  19. };
  20. hpc.node = {
  21. enable = true;
  22. id = nodeIndex;
  23. };
  24. hpc.netinstall.enable = true;
  25. networking.hostName = config.hpc.node.name;
  26. networking.timeServers = [
  27. "manager.${config.networking.domain}"
  28. ];
  29. nix.settings = {
  30. substituters = [
  31. "http://cache.${config.networking.domain}"
  32. ];
  33. trusted-public-keys = [
  34. (fileContents nodes."manager".config.gather.parts."cache/key".path)
  35. ];
  36. };
  37. }