nixos/pkgs/systemPackages.nix

25 lines
509 B
Nix

{ config, lib, fn, pkgs, ... }:
with lib;
let
cfg = config.machine;
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));
services.emacs = mkIf (elem "emacs" cfg.pkgs) {
defaultEditor = true;
enable = true;
install = true;
package = cfg.pkgsets.emacs.pkgwrap;
};
}