Reworked pkgsets implementation again, still not really what I want yet.
This commit is contained in:
parent
cc21ece351
commit
c33b4517a7
20 changed files with 364 additions and 290 deletions
|
@ -4,13 +4,20 @@ with lib;
|
|||
|
||||
let
|
||||
cfg = config.machine;
|
||||
pkgsets = (lists.forEach
|
||||
(attrNames (filterAttrs (n: v: v == "regular") (builtins.readDir ./pkgsets)))
|
||||
(v: (./. + "/pkgsets/${v}")));
|
||||
in {
|
||||
environment.systemPackages = flatten (attrVals cfg.pkgs pkgs.pkgsets);
|
||||
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 = pkgs.pkgsets.emacs;
|
||||
package = (elemAt cfg.pkgsets.emacs.pkgwrap 0);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue