forked from DGNum/colmena
Merge pull request #100 from fooker/pr/specialArgs
eval.nix: per-node specialArgs
This commit is contained in:
commit
1b045eb38d
2 changed files with 8 additions and 1 deletions
|
@ -146,7 +146,7 @@ let
|
||||||
colmenaOptions.deploymentOptions
|
colmenaOptions.deploymentOptions
|
||||||
hive.defaults
|
hive.defaults
|
||||||
] ++ configs;
|
] ++ configs;
|
||||||
specialArgs = hive.meta.specialArgs // {
|
specialArgs = hive.meta.specialArgs // (hive.meta.nodeSpecialArgs.${name} or {}) // {
|
||||||
inherit name;
|
inherit name;
|
||||||
nodes = uncheckedNodes;
|
nodes = uncheckedNodes;
|
||||||
};
|
};
|
||||||
|
|
|
@ -248,6 +248,13 @@ with builtins; rec {
|
||||||
type = types.attrsOf types.unspecified;
|
type = types.attrsOf types.unspecified;
|
||||||
default = {};
|
default = {};
|
||||||
};
|
};
|
||||||
|
nodeSpecialArgs = lib.mkOption {
|
||||||
|
description = ''
|
||||||
|
Node-specific special args.
|
||||||
|
'';
|
||||||
|
type = types.attrsOf types.unspecified;
|
||||||
|
default = {};
|
||||||
|
};
|
||||||
machinesFile = lib.mkOption {
|
machinesFile = lib.mkOption {
|
||||||
description = ''
|
description = ''
|
||||||
Use the machines listed in this file when building this hive configuration.
|
Use the machines listed in this file when building this hive configuration.
|
||||||
|
|
Loading…
Reference in a new issue