nixos/pkgs/systemPackages.nix

25 lines
342 B
Nix
Raw Normal View History

2023-09-11 20:23:04 +02:00
{
config,
lib,
fn,
pkgs,
...
}:
with lib;
let
cfg = config.machine;
2023-09-11 20:23:04 +02:00
pkgsets = fn.lst {
p = toString ../pkgsets;
b = true;
};
in
{
imports = pkgsets;
environment.systemPackages = flatten (
lists.forEach (attrVals (filter (v: !(strings.hasInfix "::" v)) cfg.pkgs) cfg.pkgsets) (
v: v.pkgwrap
)
);
}