nixos/slurm: add extraConfigPaths options

wip/yesman
Markus Kowalewski 6 years ago committed by Markus Kowalewski
parent ae93ed0f0d
commit 25af518845
No known key found for this signature in database
GPG Key ID: 502A248E3FB4FF48
  1. 13
      nixos/modules/services/computing/slurm/slurm.nix

@ -46,7 +46,7 @@ let
# in the same directory as slurm.conf
etcSlurm = pkgs.symlinkJoin {
name = "etc-slurm";
paths = [ configFile cgroupConfig plugStackConfig ];
paths = [ configFile cgroupConfig plugStackConfig ] ++ cfg.extraConfigPaths;
};
in
@ -239,6 +239,17 @@ in
'';
};
extraConfigPaths = mkOption {
type = with types; listOf path;
default = [];
description = ''
Slurm expects config files for plugins in the same path
as <literal>slurm.conf</literal>. Add extra nix store
paths that should be merged into same directory as
<literal>slurm.conf</literal>.
'';
};
};

Loading…
Cancel
Save