From b7ee7d0da11595ba2576ac25ddccd3b0047401b9 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 14 Feb 2024 20:19:37 +0400 Subject: [PATCH] add type option for emacs/default.nix --- modules/dev/editors/emacs/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/dev/editors/emacs/default.nix b/modules/dev/editors/emacs/default.nix index 1b4d69c9..248da290 100644 --- a/modules/dev/editors/emacs/default.nix +++ b/modules/dev/editors/emacs/default.nix @@ -12,7 +12,7 @@ with lib; let myEmacs = pkgs.emacsWithPackagesFromUsePackage { config = ../../../../config/emacs/emacs.org; - package = pkgs.emacs-unstable; + package = pkgs.emacs- + cfg.type; alwaysEnsure = true; alwaysTangle = true; extraEmacsPackages = epkgs: [ @@ -26,6 +26,10 @@ in { options.modules.dev.editors.emacs = { enable = mkEnableOption false; daemon = mkEnableOption true; + type = mkOption { + type = string; + default = "unstable"; + }; }; config = mkIf cfg.enable {