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

{ lib, config, ... }:
with lib;
{
options.hpc.node = {
enable = mkEnableOption "Compute Node";
id = mkOption {
description = ''
ID of the compute node.
'';
type = types.ints.unsigned;
};
name = mkOption {
description = ''
Name of the node.
'';
type = types.str;
readOnly = true;
};
};
config = mkIf config.hpc.node.enable {
hpc.node.name = "node-${fixedWidthNumber 2 config.hpc.node.id}";
deployment.tags = [ "node" ];
};
}