ark/pkgs-set/default.nix

29 lines
510 B
Nix
Raw Normal View History

2022-04-09 21:33:13 +03:00
{
2022-05-28 16:12:53 +03:00
inputs,
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-05-28 16:12:53 +03:00
l = lib;
pkgs = import inputs.nixpkgs {
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 =
2022-05-28 16:12:53 +03:00
l.mapAttrsToList
(
name: _: let
o = import "${./overlays}/${name}";
in
if (l.functionArgs o) ? inputs
then o {inherit inputs;}
else o
)
(l.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
// {
2022-05-28 16:12:53 +03:00
_exported = l.getAttrs pkgsToExport pkgs;
2022-04-10 05:48:34 +03:00
}