mirror of
https://github.com/mjallen18/snowfall-lib.git
synced 2026-04-18 09:05:58 -05:00
feat(flake): export a combined overlay
This commit is contained in:
@@ -78,6 +78,15 @@ rec {
|
||||
modules = snowfall-lib.module.create-modules {
|
||||
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:
|
||||
let
|
||||
@@ -104,7 +113,7 @@ rec {
|
||||
snowfall-lib.attrs.merge-deep [ user-outputs outputs ];
|
||||
|
||||
flake-options = custom-flake-options // {
|
||||
inherit hosts templates;
|
||||
inherit hosts templates overlays overlay;
|
||||
inherit (user-inputs) self;
|
||||
|
||||
lib = snowfall-lib.internal.user-lib;
|
||||
@@ -114,11 +123,6 @@ rec {
|
||||
|
||||
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 {
|
||||
overlay-package-namespace = full-flake-options.overlay-package-namespace or null;
|
||||
extra-overlays = full-flake-options.overlays or [ ];
|
||||
|
||||
Reference in New Issue
Block a user