ref(nix)!: reorganize overlays

fix the issue where exported modules can't find exported packages
This commit is contained in:
Primrose 2024-12-18 21:01:52 +01:00
parent 87c9090ebe
commit 871d6ed1d3
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 196 additions and 189 deletions

View file

@ -1,4 +1,9 @@
{ inputs, lib, ... }:
{
inputs,
lib,
self,
...
}:
{
@ -35,10 +40,8 @@
disko
;
};
in
{
default = lib.composeManyExtensions [
reexports = [
externPackages
inputs.nur.overlays.default
@ -46,7 +49,14 @@
inputs.hoot.overlays.default
];
in
{
default = lib.composeManyExtensions (
reexports
# Scope my overlay
++ [ (final: prev: { myPkgs = self.overlays.packages final prev; }) ]
);
reexports = lib.composeManyExtensions reexports;
};
}