@@ -16,8 +16,8 @@ let
1616 SlurmUser=${cfg.user}
1717 ${optionalString (cfg.controlMachine != null) ''controlMachine=${cfg.controlMachine}''}
1818 ${optionalString (cfg.controlAddr != null) ''controlAddr=${cfg.controlAddr}''}
19− ${optionalString (cfg.nodeName != null) ''nodeName=${cfg.nodeName}''}
20− ${optionalString (cfg.partitionName != null) ''partitionName=${cfg.partitionName}''}
19+ ${toString (map (x: "NodeName=${x}\n") cfg.nodeName)}
20+ ${toString (map (x: "PartitionName=${x}\n") cfg.partitionName)}
2121 PlugStackConfig=${plugStackConfig}
2222 ProctrackType=${cfg.procTrackType}
2323 ${cfg.extraConfig}
@@ -149,9 +149,9 @@ in
149149 };
150150
151151 nodeName = mkOption {
152− type = types.nullOr types.str;
153− default = null;
154− example = "linux[1-32] CPUs=1 State=UNKNOWN";
152+ type = types.listOf types.str;
153+ default = [];
154+ example = literalExample ''[ "linux[1-32] CPUs=1 State=UNKNOWN" ];'';
155155 description = ''
156156 Name that SLURM uses to refer to a node (or base partition for BlueGene
157157 systems). Typically this would be the string that "/bin/hostname -s"
@@ -160,9 +160,9 @@ in
160160 };
161161
162162 partitionName = mkOption {
163− type = types.nullOr types.str;
164− default = null;
165− example = "debug Nodes=linux[1-32] Default=YES MaxTime=INFINITE State=UP";
163+ type = types.listOf types.str;
164+ default = [];
165+ example = literalExample ''[ "debug Nodes=linux[1-32] Default=YES MaxTime=INFINITE State=UP" ];'';
166166 description = ''
167167 Name by which the partition may be referenced. Note that now you have
168168 to write the partition's parameters after the name.