ark/pkgs-set/default.nix
2022-04-17 19:20:06 +03:00

21 lines
360 B
Nix

{
channel,
system,
lib,
...
}: let
pkgs = import channel {
inherit system;
config.allowUnfree = true;
overlays =
lib.mapAttrsToList
(name: _: import "${./overlays}/${name}")
(lib.readDir ./overlays);
};
pkgsToExport = import ./pkgs-to-export.nix;
in
pkgs
// {
_exported = lib.getAttrs pkgsToExport pkgs;
}