git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #115839 from markuskowa/fix-slurm

nixos/slurm: expose to path config files

commit2af233afacd91a7f20d435b4097522e63a849e83 authormarkuskowa <markus.kowalewski@gmail.com> dateThu 18 Mar 2021, 14:48 (6 years ago) parent1a48509c923b4c
1 file changed+10−1
nixos/modules/services/computing/slurm/slurm.nix+10−1
nixos/modules/services/computing/slurm/slurm.nix+10−1
@@ -274,6 +274,15 @@ in
274274 '';
275275 };
276276
277+ etcSlurm = mkOption {
278+ type = types.path;
279+ internal = true;
280+ default = etcSlurm;
281+ description = ''
282+ Path to directory with slurm config files. This option is set by default from the
283+ Slurm module and is meant to make the Slurm config file available to other modules.
284+ '';
285+ };
277286
278287 };
279288
@@ -308,7 +317,7 @@ in
308317 #!/bin/sh
309318 if [ -z "$SLURM_CONF" ]
310319 then
311− SLURM_CONF="${etcSlurm}/slurm.conf" "$EXE" "\$@"
320+ SLURM_CONF="${cfg.etcSlurm}/slurm.conf" "$EXE" "\$@"
312321 else
313322 "$EXE" "\$0"
314323 fi