ark/pkgs-set/default.nix

21 lines
360 B
Nix
Raw Normal View History

2022-04-09 21:33:13 +03:00
{
2022-04-17 19:20:06 +03:00
channel,
2022-04-09 21:33:13 +03:00
system,
lib,
2022-04-10 05:48:34 +03:00
...
2022-04-09 21:33:13 +03:00
}: let
2022-04-17 19:20:06 +03:00
pkgs = import channel {
2022-04-09 21:33:13 +03:00
inherit system;
2022-04-09 22:09:32 +03:00
config.allowUnfree = true;
2022-04-17 19:20:06 +03:00
overlays =
lib.mapAttrsToList
(name: _: import "${./overlays}/${name}")
(lib.readDir ./overlays);
2022-04-09 21:33:13 +03:00
};
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;
}