add type option for emacs/default.nix

This commit is contained in:
Sakooooo 2024-02-14 20:19:37 +04:00
parent 5655a4834f
commit b7ee7d0da1
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -12,7 +12,7 @@ with lib; let
myEmacs = pkgs.emacsWithPackagesFromUsePackage { myEmacs = pkgs.emacsWithPackagesFromUsePackage {
config = ../../../../config/emacs/emacs.org; config = ../../../../config/emacs/emacs.org;
package = pkgs.emacs-unstable; package = pkgs.emacs- + cfg.type;
alwaysEnsure = true; alwaysEnsure = true;
alwaysTangle = true; alwaysTangle = true;
extraEmacsPackages = epkgs: [ extraEmacsPackages = epkgs: [
@ -26,6 +26,10 @@ in {
options.modules.dev.editors.emacs = { options.modules.dev.editors.emacs = {
enable = mkEnableOption false; enable = mkEnableOption false;
daemon = mkEnableOption true; daemon = mkEnableOption true;
type = mkOption {
type = string;
default = "unstable";
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {