2019-10-11 20:51:46 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.machine;
|
2019-11-17 23:13:50 +01:00
|
|
|
fn = import (toString ../fn.nix) { inherit lib; };
|
2020-03-29 09:10:14 +02:00
|
|
|
pkgsets = fn.lst { p = (toString ../pkgsets); b = true;};
|
2019-10-11 20:51:46 +02:00
|
|
|
in {
|
2019-10-23 03:44:17 +02:00
|
|
|
imports = pkgsets;
|
|
|
|
|
2019-11-17 23:13:50 +01:00
|
|
|
environment.systemPackages = flatten
|
|
|
|
(lists.forEach
|
|
|
|
(attrVals
|
|
|
|
(filter
|
|
|
|
(v: !(strings.hasInfix "::" v)) cfg.pkgs)
|
|
|
|
cfg.pkgsets)
|
|
|
|
(v: v.pkgwrap));
|
2019-10-11 20:51:46 +02:00
|
|
|
|
2019-11-17 23:13:50 +01:00
|
|
|
services.emacs = mkIf (elem "emacs" cfg.pkgs) {
|
|
|
|
defaultEditor = true;
|
|
|
|
enable = true;
|
|
|
|
install = true;
|
|
|
|
package = cfg.pkgsets.emacs.pkgwrap;
|
|
|
|
};
|
2019-10-11 20:51:46 +02:00
|
|
|
}
|