{ 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" ]; }; }