mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
default.nix: restructure Nix modules export
This commit is contained in:
parent
a5ababe88d
commit
efd7f3d3dd
@ -1,13 +1,13 @@
|
||||
{ pkgs ? import <nixpkgs> { } }:
|
||||
|
||||
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; })
|
||||
|
Loading…
Reference in New Issue
Block a user