feat(hive): Make code more compact

This commit is contained in:
Tom Hubrecht 2024-02-21 17:20:26 +01:00
parent 6b827e56b1
commit 817c723135

View file

@ -44,17 +44,13 @@ let
###
# Function to create arguments based on the node
#
mkArgs =
node:
let
lib' = (mkNixpkgs' node).lib;
in
{
lib = import sources.nix-lib {
lib = lib';
keysRoot = ./keys;
};
mkArgs = node: {
lib = import sources.nix-lib {
inherit (mkNixpkgs' node) lib;
keysRoot = ./keys;
};
};
nodes = builtins.attrNames metadata.nodes;
in