forked from DGNum/infrastructure
feat(hive): Make code more compact
This commit is contained in:
parent
6b827e56b1
commit
817c723135
1 changed files with 6 additions and 10 deletions
16
hive.nix
16
hive.nix
|
@ -44,17 +44,13 @@ let
|
||||||
###
|
###
|
||||||
# Function to create arguments based on the node
|
# Function to create arguments based on the node
|
||||||
#
|
#
|
||||||
mkArgs =
|
mkArgs = node: {
|
||||||
node:
|
lib = import sources.nix-lib {
|
||||||
let
|
inherit (mkNixpkgs' node) lib;
|
||||||
lib' = (mkNixpkgs' node).lib;
|
|
||||||
in
|
keysRoot = ./keys;
|
||||||
{
|
|
||||||
lib = import sources.nix-lib {
|
|
||||||
lib = lib';
|
|
||||||
keysRoot = ./keys;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nodes = builtins.attrNames metadata.nodes;
|
nodes = builtins.attrNames metadata.nodes;
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue