feat(flake): export a combined overlay
This commit is contained in:
parent
9112e04405
commit
13cd056669
1 changed files with 10 additions and 6 deletions
|
|
@ -78,6 +78,15 @@ rec {
|
||||||
modules = snowfall-lib.module.create-modules {
|
modules = snowfall-lib.module.create-modules {
|
||||||
overrides = (full-flake-options.modules or { });
|
overrides = (full-flake-options.modules or { });
|
||||||
};
|
};
|
||||||
|
overlays = core-inputs.flake-utils-plus.lib.exportOverlays ({
|
||||||
|
inherit (user-inputs.self) pkgs;
|
||||||
|
inputs = user-inputs;
|
||||||
|
});
|
||||||
|
|
||||||
|
overlay = (final: prev:
|
||||||
|
snowfall-lib.attrs.merge-deep
|
||||||
|
(builtins.map (overlay: overlay final prev) (builtins.attrValues overlays))
|
||||||
|
);
|
||||||
|
|
||||||
outputs-builder = channels:
|
outputs-builder = channels:
|
||||||
let
|
let
|
||||||
|
|
@ -104,7 +113,7 @@ rec {
|
||||||
snowfall-lib.attrs.merge-deep [ user-outputs outputs ];
|
snowfall-lib.attrs.merge-deep [ user-outputs outputs ];
|
||||||
|
|
||||||
flake-options = custom-flake-options // {
|
flake-options = custom-flake-options // {
|
||||||
inherit hosts templates;
|
inherit hosts templates overlays overlay;
|
||||||
inherit (user-inputs) self;
|
inherit (user-inputs) self;
|
||||||
|
|
||||||
lib = snowfall-lib.internal.user-lib;
|
lib = snowfall-lib.internal.user-lib;
|
||||||
|
|
@ -114,11 +123,6 @@ rec {
|
||||||
|
|
||||||
channelsConfig = full-flake-options.channels-config or { };
|
channelsConfig = full-flake-options.channels-config or { };
|
||||||
|
|
||||||
overlays = core-inputs.flake-utils-plus.lib.exportOverlays ({
|
|
||||||
inherit (user-inputs.self) pkgs;
|
|
||||||
inputs = user-inputs;
|
|
||||||
});
|
|
||||||
|
|
||||||
channels.nixpkgs.overlaysBuilder = snowfall-lib.overlay.create-overlays {
|
channels.nixpkgs.overlaysBuilder = snowfall-lib.overlay.create-overlays {
|
||||||
overlay-package-namespace = full-flake-options.overlay-package-namespace or null;
|
overlay-package-namespace = full-flake-options.overlay-package-namespace or null;
|
||||||
extra-overlays = full-flake-options.overlays or [ ];
|
extra-overlays = full-flake-options.overlays or [ ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue