From efd7f3d3ddc380e9ca1ce3125a8c8baa11d62c3f Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 23 Dec 2023 11:04:01 +0800 Subject: [PATCH] default.nix: restructure Nix modules export --- default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index d34d49c6..b86f5f85 100644 --- a/default.nix +++ b/default.nix @@ -1,13 +1,13 @@ { pkgs ? import { } }: let - lib' = pkgs.lib.extend (import ./lib/extras/extend-lib.nix); + lib = pkgs.lib.extend (import ./lib/extras/extend-lib.nix); in { lib = import ./lib { lib = pkgs.lib; }; - modules = lib'.importModules (lib'.filesToAttr ./modules/nixos); + modules.default.imports = import ./modules/nixos { inherit lib; }; overlays = import ./overlays // { foo-dogsquared-pkgs = final: prev: import ./pkgs { pkgs = prev; }; }; - hmModules = lib'.importModules (lib'.filesToAttr ./modules/home-manager); + hmModules.default.imports = import ./modules/home-manager { inherit lib; }; } // (import ./pkgs { inherit pkgs; })