ark/pkgs-set/default.nix

27 lines
531 B
Nix
Raw Normal View History

2022-04-09 21:33:13 +03:00
{
stable,
unstable,
system,
lib,
2022-04-10 05:48:34 +03:00
...
2022-04-09 21:33:13 +03:00
}: let
overlays =
lib.mapAttrsToList
(name: _: import "${./overlays}/${name}")
(lib.readDir ./overlays);
unstablePkgs = import unstable {
inherit system;
2022-04-09 22:09:32 +03:00
config.allowUnfree = true;
2022-04-09 21:33:13 +03:00
};
pkgs = import stable {
inherit system;
2022-04-09 22:09:32 +03:00
config.allowUnfree = true;
2022-04-09 21:33:13 +03:00
overlays = [(_: _: import ./from-unstable.nix unstablePkgs)] ++ overlays;
};
2022-04-10 05:48:34 +03:00
pkgsToExport = import ./pkgs-to-export.nix;
2022-04-09 21:33:13 +03:00
in
pkgs
2022-04-10 05:48:34 +03:00
// {
_exported = lib.getAttrs pkgsToExport pkgs;
}