ref: reduce eval.nix contract even further

- meta and evalAll contracts are found to be not consumed
This commit is contained in:
David Arnold 2022-05-26 17:26:54 -05:00
parent 83a919bdb0
commit e309b2d4b2
No known key found for this signature in database
GPG key ID: 0318D822BAC965CC

View file

@ -183,7 +183,6 @@ let
deploymentConfigSelected = names: deploymentConfigSelected = names:
listToAttrs (map (name: { inherit name; value = nodes.${name}.config.deployment; }) names); listToAttrs (map (name: { inherit name; value = nodes.${name}.config.deployment; }) names);
evalAll = evalSelected nodeNames;
evalSelected = names: let evalSelected = names: let
selected = lib.filterAttrs (name: _: elem name names) toplevel; selected = lib.filterAttrs (name: _: elem name names) toplevel;
in selected; in selected;
@ -205,10 +204,13 @@ let
metaConfig = lib.filterAttrs (n: v: elem n metaConfigKeys) hive.meta; metaConfig = lib.filterAttrs (n: v: elem n metaConfigKeys) hive.meta;
in { in {
inherit inherit
nodes toplevel deploymentConfig
deploymentConfig deploymentConfigSelected deploymentConfigSelected
evalAll evalSelected evalSelectedDrvPaths introspect evalSelected
metaConfig; evalSelectedDrvPaths
introspect
meta = hive.meta; metaConfig
nodes
toplevel
;
} }