2021-04-19 02:45:08 +00:00
|
|
|
{ lib, utils }:
|
2021-03-14 07:10:51 +00:00
|
|
|
|
2021-04-19 03:00:49 +00:00
|
|
|
{ userFlakeNixOS, userFlakeSelf, userFlakeInputs }:
|
|
|
|
|
|
|
|
{ extern, overrides }:
|
2021-04-18 01:46:20 +00:00
|
|
|
(utils.lib.eachDefaultSystem
|
2021-03-14 07:10:51 +00:00
|
|
|
(system:
|
|
|
|
let
|
2021-04-18 01:46:20 +00:00
|
|
|
overridePkgs = lib.os.pkgImport userFlakeInputs.override [ ] system;
|
2021-03-26 16:54:37 +00:00
|
|
|
overridesOverlay = overrides.packages;
|
2021-03-14 07:10:51 +00:00
|
|
|
|
|
|
|
overlays = [
|
|
|
|
(final: prev: {
|
|
|
|
lib = prev.lib.extend (lfinal: lprev: {
|
2021-04-18 01:35:05 +00:00
|
|
|
inherit lib;
|
2021-03-14 07:10:51 +00:00
|
|
|
inherit (lib) nixosSystem;
|
|
|
|
});
|
|
|
|
})
|
2021-03-26 20:00:38 +00:00
|
|
|
(overridesOverlay overridePkgs)
|
2021-04-19 00:35:11 +00:00
|
|
|
userFlakeSelf.overlay
|
2021-03-14 07:10:51 +00:00
|
|
|
]
|
|
|
|
++ extern.overlays
|
2021-04-19 00:35:11 +00:00
|
|
|
++ (lib.attrValues userFlakeSelf.overlays);
|
2021-03-14 07:10:51 +00:00
|
|
|
in
|
2021-04-19 02:45:08 +00:00
|
|
|
{ pkgs = lib.os.pkgImport userFlakeNixOS overlays system; }
|
2021-03-14 07:10:51 +00:00
|
|
|
)
|
|
|
|
).pkgs
|