From 817c723135f8816c59464287c51b78afac8c46ad Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 21 Feb 2024 17:20:26 +0100 Subject: [PATCH] feat(hive): Make code more compact --- hive.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/hive.nix b/hive.nix index e4e4ca4..c94568a 100644 --- a/hive.nix +++ b/hive.nix @@ -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