23 lines
548 B
Nix
23 lines
548 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.machine;
|
|
pkgsets = (lists.forEach
|
|
(attrNames (filterAttrs (n: v: v == "regular") (builtins.readDir (toString ./pkgsets))))
|
|
(v: (./. + "/pkgsets/${v}")));
|
|
in {
|
|
imports = pkgsets;
|
|
|
|
environment.systemPackages = flatten (lists.forEach
|
|
(attrVals cfg.pkgs cfg.pkgsets)
|
|
(v: v.pkgwrap));
|
|
|
|
# services.emacs = mkIf (elem "emacs" cfg.pkgs) {
|
|
# defaultEditor = true;
|
|
# enable = true;
|
|
# install = true;
|
|
# package = (elemAt cfg.pkgsets.emacs.pkgwrap 0);
|
|
# };
|
|
}
|