add emacsType and this should work now
This commit is contained in:
parent
b36af608e3
commit
048bf80a6d
2 changed files with 6 additions and 4 deletions
|
@ -121,7 +121,7 @@
|
|||
emacs = {
|
||||
enable = true;
|
||||
daemon = false;
|
||||
type = "unstable-pgtk";
|
||||
type = "pkgs.emacs-unstable-pgtk";
|
||||
};
|
||||
};
|
||||
cc.enable = true;
|
||||
|
|
|
@ -12,7 +12,7 @@ with lib; let
|
|||
|
||||
myEmacs = pkgs.emacsWithPackagesFromUsePackage {
|
||||
config = ../../../../config/emacs/emacs.org;
|
||||
package = "pkgs.emacs-" + cfg.type;
|
||||
package = cfg.type;
|
||||
alwaysEnsure = true;
|
||||
alwaysTangle = true;
|
||||
extraEmacsPackages = epkgs: [
|
||||
|
@ -22,13 +22,15 @@ with lib; let
|
|||
epkgs.exwm
|
||||
];
|
||||
};
|
||||
|
||||
emacsType = "pkgs.*";
|
||||
in {
|
||||
options.modules.dev.editors.emacs = {
|
||||
enable = mkEnableOption false;
|
||||
daemon = mkEnableOption true;
|
||||
type = mkOption {
|
||||
type = with types; str;
|
||||
default = "unstable";
|
||||
type = emacsType;
|
||||
default = "pkgs.emacs-unstable";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue