nixos/pkgs/systemPackages.nix

34 lines
540 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));
services.emacs = mkIf (elem "emacs" cfg.pkgs) {
defaultEditor = true;
enable = true;
install = true;
package = cfg.pkgsets.emacs.pkgwrap;
};
}