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.

33 lines
528 B

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. { lib, ... }:
  2. with lib;
  3. let
  4. mkMachine = { name, type, opts ? { } }: rec {
  5. inherit name type opts;
  6. path = ./machines/${type};
  7. gather = ./gathered/${name};
  8. };
  9. manager = mkMachine {
  10. name = "manager";
  11. type = "manager";
  12. };
  13. nodes = imap0
  14. (nodeIndex: nodeConfig: mkMachine {
  15. name = "node-${fixedWidthNumber 2 nodeIndex}";
  16. type = "node";
  17. opts = {
  18. inherit nodeIndex nodeConfig;
  19. };
  20. })
  21. (import ./machines/nodes.nix);
  22. in
  23. concatLists [
  24. [ manager ]
  25. nodes
  26. ]