add type option for emacs/default.nix
This commit is contained in:
parent
5655a4834f
commit
b7ee7d0da1
1 changed files with 5 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue