nixos/pkgs/systemPackages.nix

23 lines
344 B
Nix

{
config,
lib,
fn,
...
}:
with lib;
let
cfg = config.machine;
pkgsets = fn.lst {
path = toString ../pkgsets;
fullPath = true;
};
in
{
imports = pkgsets;
environment.systemPackages = flatten (
lists.forEach (attrVals (filter (v: !(strings.hasInfix "::" v)) cfg.pkgs) cfg.pkgsets) (
v: v.pkgwrap
)
);
}