From eb3f9e87435be5941278d819351bac0ece172051 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 20 Apr 2023 22:10:21 -0400 Subject: move to my external lib --- flake.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 1b13e27..63e969b 100644 --- a/flake.nix +++ b/flake.nix @@ -68,12 +68,15 @@ self, nixpkgs, agenix, + getchoo, flake-utils, openwrt-imagebuilder, pre-commit-hooks, ... }: let - inherit (import ./lib {inherit (nixpkgs) lib;}) mapHosts mapHMUsers; + getchooLib = getchoo.lib (inputs // {inherit self;}); + + inherit (getchooLib.configs) mapHMUsers mapHosts; in flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; @@ -110,10 +113,10 @@ formatter = pkgs.alejandra; - homeConfigurations = mapHMUsers inputs system; + homeConfigurations = mapHMUsers system ./users; }) // { - nixosConfigurations = mapHosts inputs; + nixosConfigurations = mapHosts ./hosts; nixosModules.getchoo = import ./modules; -- cgit v1.2.3