mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
default.nix: restructure Nix modules export
This commit is contained in:
parent
a5ababe88d
commit
efd7f3d3dd
@ -1,13 +1,13 @@
|
|||||||
{ pkgs ? import <nixpkgs> { } }:
|
{ pkgs ? import <nixpkgs> { } }:
|
||||||
|
|
||||||
let
|
let
|
||||||
lib' = pkgs.lib.extend (import ./lib/extras/extend-lib.nix);
|
lib = pkgs.lib.extend (import ./lib/extras/extend-lib.nix);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
lib = import ./lib { lib = pkgs.lib; };
|
lib = import ./lib { lib = pkgs.lib; };
|
||||||
modules = lib'.importModules (lib'.filesToAttr ./modules/nixos);
|
modules.default.imports = import ./modules/nixos { inherit lib; };
|
||||||
overlays = import ./overlays // {
|
overlays = import ./overlays // {
|
||||||
foo-dogsquared-pkgs = final: prev: import ./pkgs { pkgs = prev; };
|
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; })
|
} // (import ./pkgs { inherit pkgs; })
|
||||||
|
Loading…
Reference in New Issue
Block a user