ark/lib/devos/mkPkgs.nix

28 lines
679 B
Nix
Raw Normal View History

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