diff options
| author | seth <[email protected]> | 2023-04-20 22:10:21 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-20 22:13:45 -0400 |
| commit | eb3f9e87435be5941278d819351bac0ece172051 (patch) | |
| tree | d32d347bcba4760dcf1b3b8d11e6accbde12f49c /flake.nix | |
| parent | 65e26c34990fa57e305093572ea3a9596bc45b38 (diff) | |
move to my external lib
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; |
