Merge pull request #100 from fooker/pr/specialArgs

eval.nix: per-node specialArgs
This commit is contained in:
Zhaofeng Li 2022-07-01 16:29:59 -07:00 committed by GitHub
commit 1b045eb38d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -146,7 +146,7 @@ let
colmenaOptions.deploymentOptions
hive.defaults
] ++ configs;
specialArgs = hive.meta.specialArgs // {
specialArgs = hive.meta.specialArgs // (hive.meta.nodeSpecialArgs.${name} or {}) // {
inherit name;
nodes = uncheckedNodes;
};

View file

@ -248,6 +248,13 @@ with builtins; rec {
type = types.attrsOf types.unspecified;
default = {};
};
nodeSpecialArgs = lib.mkOption {
description = ''
Node-specific special args.
'';
type = types.attrsOf types.unspecified;
default = {};
};
machinesFile = lib.mkOption {
description = ''
Use the machines listed in this file when building this hive configuration.