Skip to content

Commit

Permalink
WIP hide internal modules?
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jul 21, 2023
1 parent 7a4d52f commit 889bedb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/flake-parts/all-modules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ in {
};

# generates future flake outputs: `modules.<kind>.<module-name>`
config.flake.modules = lib.mapAttrs (kind: _: mapModules kind) moduleKinds;
config.flake.modules =
let modules = lib.mapAttrs (kind: _: mapModules kind) moduleKinds;
in modules // {
flake-parts = modules.flake-parts // {
all-modules = { imports = flakePartsModules; _class = "flake-parts"; };
};
};

# comapt to current schema: `nixosModules` / `darwinModules`
config.flake.nixosModules = config.flake.modules.nixos or {};
Expand Down

0 comments on commit 889bedb

Please sign in to comment.