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.

30 lines
524 B

  1. { lib, config, ... }:
  2. with lib;
  3. {
  4. options.hpc.node = {
  5. enable = mkEnableOption "Compute Node";
  6. id = mkOption {
  7. description = ''
  8. ID of the compute node.
  9. '';
  10. type = types.ints.unsigned;
  11. };
  12. name = mkOption {
  13. description = ''
  14. Name of the node.
  15. '';
  16. type = types.str;
  17. readOnly = true;
  18. };
  19. };
  20. config = mkIf config.hpc.node.enable {
  21. hpc.node.name = "node-${fixedWidthNumber 2 config.hpc.node.id}";
  22. deployment.tags = [ "node" ];
  23. };
  24. }