Modularize emacs package

This commit is contained in:
Henrik Lissner 2020-07-31 18:57:14 -04:00
parent b8c45bf82d
commit b47de23f0a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -10,13 +10,17 @@ with lib;
type = types.bool; type = types.bool;
default = false; default = false;
}; };
pkg = mkOption {
type = types.package;
default = pkgs.emacsUnstable;
};
}; };
config = mkIf config.modules.editors.emacs.enable { config = mkIf config.modules.editors.emacs.enable {
my = { my = {
packages = with pkgs; [ packages = with pkgs; [
## Doom dependencies ## Doom dependencies
emacsUnstable config.modules.editors.emacs.pkg
git git
(ripgrep.override {withPCRE2 = true;}) (ripgrep.override {withPCRE2 = true;})
gnutls # for TLS connectivity gnutls # for TLS connectivity