Make pkgsets accessible to service configurations.
This commit is contained in:
parent
206c2e42af
commit
cc21ece351
7 changed files with 29 additions and 35 deletions
16
pkgs/systemPackages.nix
Normal file
16
pkgs/systemPackages.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue