nixos/slurm: add extraConfigPaths options
This commit is contained in:
parent
ae93ed0f0d
commit
25af518845
@ -46,7 +46,7 @@ let
|
|||||||
# in the same directory as slurm.conf
|
# in the same directory as slurm.conf
|
||||||
etcSlurm = pkgs.symlinkJoin {
|
etcSlurm = pkgs.symlinkJoin {
|
||||||
name = "etc-slurm";
|
name = "etc-slurm";
|
||||||
paths = [ configFile cgroupConfig plugStackConfig ];
|
paths = [ configFile cgroupConfig plugStackConfig ] ++ cfg.extraConfigPaths;
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
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…
x
Reference in New Issue
Block a user