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.

40 lines
684 B

2 years ago
2 years ago
2 years 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
2 years ago
2 years ago
2 years ago
2 years 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.${fixedWidthNumber 3 (100 + id)}";
  14. targetUser = "root";
  15. tags = [ "node" ];
  16. };
  17. _module.args = {
  18. node-id = id;
  19. };
  20. networking.hostName = "node-${fixedWidthNumber 2 id}";
  21. networking.timeServers = [
  22. "manager.${config.networking.domain}"
  23. ];
  24. nix.settings = {
  25. substituters = [
  26. "http://cache.${config.networking.domain}"
  27. ];
  28. trusted-public-keys = [
  29. (fileContents nodes."manager".config.gather.parts."cache/key".path)
  30. ];
  31. };
  32. }