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.

39 lines
668 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. { id, ... }:
  2. { lib, config, nodes, ... }:
  3. with lib;
  4. {
  5. imports = [
  6. ./hardware.nix
  7. ./disk.nix
  8. ./network.nix
  9. ./users.nix
  10. ];
  11. deployment = {
  12. targetHost = "10.32.47.${fixedWidthNumber 3 (100 + id)}";
  13. targetUser = "root";
  14. tags = [ "node" ];
  15. };
  16. _module.args = {
  17. node-id = id;
  18. };
  19. networking.hostName = "node-${fixedWidthNumber 2 id}";
  20. networking.timeServers = [
  21. "manager.${config.networking.domain}"
  22. ];
  23. nix.settings = {
  24. substituters = [
  25. "http://cache.${config.networking.domain}"
  26. ];
  27. trusted-public-keys = [
  28. (fileContents nodes."manager".config.gather.parts."cache/key".path)
  29. ];
  30. };
  31. }