From b47de23f0ab78eac90a0695bb10e7edd1a678587 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 31 Jul 2020 18:57:14 -0400 Subject: [PATCH] Modularize emacs package --- modules/editors/emacs.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/editors/emacs.nix b/modules/editors/emacs.nix index 9f5ea86c..902d3069 100644 --- a/modules/editors/emacs.nix +++ b/modules/editors/emacs.nix @@ -10,13 +10,17 @@ with lib; type = types.bool; default = false; }; + pkg = mkOption { + type = types.package; + default = pkgs.emacsUnstable; + }; }; config = mkIf config.modules.editors.emacs.enable { my = { packages = with pkgs; [ ## Doom dependencies - emacsUnstable + config.modules.editors.emacs.pkg git (ripgrep.override {withPCRE2 = true;}) gnutls # for TLS connectivity