mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
12 lines
464 B
Nix
12 lines
464 B
Nix
|
{ pkgs ? import <nixpkgs> { } }:
|
||
|
|
||
|
let
|
||
|
lib' = pkgs.lib.extend (final: prev:
|
||
|
import ./lib { lib = prev; } // import ./lib/private.nix { lib = final; });
|
||
|
in {
|
||
|
lib = import ./lib { lib = pkgs.lib; };
|
||
|
modules = lib'.importModules (lib'.filesToAttr ./modules/nixos);
|
||
|
overlays.foo-dogsquared-pkgs = final: prev: import ./pkgs { pkgs = prev; };
|
||
|
hmModules = lib'.importModules (lib'.filesToAttr ./modules/home-manager);
|
||
|
} // (import ./pkgs { inherit pkgs; })
|