nixos/pkgs/systemPackages.nix

27 lines
378 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;
2023-09-11 20:23:04 +02:00
environment.systemPackages =
flatten
(lists.forEach
(attrVals
(filter
2023-09-11 20:23:04 +02:00
(v: !(strings.hasInfix "::" v))
cfg.pkgs)
cfg.pkgsets)
(v: v.pkgwrap));
}