From 74f364e2394e127b92f72202a1ccbc974926a796 Mon Sep 17 00:00:00 2001 From: Christian Harke Date: Thu, 12 Jan 2023 08:40:37 +0100 Subject: [PATCH] Refactor --- flake/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake/default.nix b/flake/default.nix index 82a4d617..1063353c 100644 --- a/flake/default.nix +++ b/flake/default.nix @@ -1,5 +1,7 @@ { inputs, rootPath }: +with inputs.nixpkgs; + let homeModulesBuilder = { rootPath, customLib, ... }: @@ -14,7 +16,7 @@ let ++ customLib.getRecursiveDefaultNixFileList (rootPath + "/home"); nameValuePairSystemWrapper = system: name: fn: - inputs.nixpkgs.lib.nameValuePair name (fn system); + lib.nameValuePair name (fn system); wrapper = builder: system: name: args: let @@ -28,7 +30,7 @@ let import builder builderArgs; nameValuePairWrapper = builder: system: name: args: - inputs.nixpkgs.lib.nameValuePair name (wrapper builder system name args); + lib.nameValuePair name (wrapper builder system name args); simpleNameValuePairWrapper = builder: system: name: nameValuePairWrapper builder system name { };