562f476fb5
take extern and overrides as arguments as to not import external files get inputs as a function dependency from callLib
28 lines
660 B
Nix
28 lines
660 B
Nix
{ lib, dev, nixos, self, inputs, ... }:
|
|
|
|
{ extern, overrides }:
|
|
(inputs.utils.lib.eachDefaultSystem
|
|
(system:
|
|
let
|
|
overridePkgs = dev.os.pkgImport inputs.override [ ] system;
|
|
overridesOverlay = overrides.packages;
|
|
|
|
overlays = [
|
|
(overridesOverlay overridePkgs)
|
|
self.overlay
|
|
(final: prev: {
|
|
lib = prev.lib.extend (lfinal: lprev: {
|
|
inherit dev;
|
|
inherit (lib) nixosSystem;
|
|
|
|
utils = inputs.utils.lib;
|
|
});
|
|
})
|
|
]
|
|
++ extern.overlays
|
|
++ (lib.attrValues self.overlays);
|
|
in
|
|
{ pkgs = dev.os.pkgImport nixos overlays system; }
|
|
)
|
|
).pkgs
|