nixos-config/default.nix
Gabriel Arazas a5ababe88d
lib: restructure folder structure
To easily support channels and flake.
2023-12-23 11:03:17 +08:00

14 lines
442 B
Nix

{ pkgs ? import <nixpkgs> { } }:
let
lib' = pkgs.lib.extend (import ./lib/extras/extend-lib.nix);
in
{
lib = import ./lib { lib = pkgs.lib; };
modules = lib'.importModules (lib'.filesToAttr ./modules/nixos);
overlays = import ./overlays // {
foo-dogsquared-pkgs = final: prev: import ./pkgs { pkgs = prev; };
};
hmModules = lib'.importModules (lib'.filesToAttr ./modules/home-manager);
} // (import ./pkgs { inherit pkgs; })