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.

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