2021-04-19 05:45:08 +03:00
|
|
|
{ lib, utils }:
|
2021-03-14 10:10:51 +03:00
|
|
|
|
2021-04-24 04:13:03 +03:00
|
|
|
{ self, nixos, inputs, extern, overrides }:
|
2021-04-18 04:46:20 +03:00
|
|
|
(utils.lib.eachDefaultSystem
|
2021-03-14 10:10:51 +03:00
|
|
|
(system:
|
|
|
|
let
|
2021-04-24 04:13:03 +03:00
|
|
|
overridePkgs = lib.os.pkgImport inputs.override [ ] system;
|
2021-03-26 19:54:37 +03:00
|
|
|
overridesOverlay = overrides.packages;
|
2021-03-14 10:10:51 +03:00
|
|
|
|
|
|
|
overlays = [
|
|
|
|
(final: prev: {
|
|
|
|
lib = prev.lib.extend (lfinal: lprev: {
|
2021-04-18 04:35:05 +03:00
|
|
|
inherit lib;
|
2021-03-14 10:10:51 +03:00
|
|
|
inherit (lib) nixosSystem;
|
|
|
|
});
|
|
|
|
})
|
2021-03-26 23:00:38 +03:00
|
|
|
(overridesOverlay overridePkgs)
|
2021-04-24 04:13:03 +03:00
|
|
|
self.overlay
|
2021-03-14 10:10:51 +03:00
|
|
|
]
|
|
|
|
++ extern.overlays
|
2021-04-24 04:13:03 +03:00
|
|
|
++ (lib.attrValues self.overlays);
|
2021-03-14 10:10:51 +03:00
|
|
|
in
|
2021-04-24 04:13:03 +03:00
|
|
|
{ pkgs = lib.os.pkgImport nixos overlays system; }
|
2021-03-14 10:10:51 +03:00
|
|
|
)
|
|
|
|
).pkgs
|