Make pkgsets accessible to service configurations.

This commit is contained in:
Kevin Baensch 2019-10-11 20:51:46 +02:00
parent 206c2e42af
commit cc21ece351
7 changed files with 29 additions and 35 deletions

16
pkgs/systemPackages.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.machine;
in {
environment.systemPackages = flatten (attrVals cfg.pkgs pkgs.pkgsets);
services.emacs = mkIf (elem "emacs" cfg.pkgs) {
defaultEditor = true;
enable = true;
install = true;
package = pkgs.pkgsets.emacs;
};
}