Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Jan 12, 2023
1 parent adfee2b commit 74f364e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flake/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{ inputs, rootPath }:

with inputs.nixpkgs;

let

homeModulesBuilder = { rootPath, customLib, ... }:
Expand All @@ -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
Expand All @@ -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 { };
Expand Down

0 comments on commit 74f364e

Please sign in to comment.