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 = {
|
emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
daemon = false;
|
daemon = false;
|
||||||
type = "unstable-pgtk";
|
type = "pkgs.emacs-unstable-pgtk";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
cc.enable = true;
|
cc.enable = true;
|
||||||
|
|
|
@ -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-" + cfg.type;
|
package = cfg.type;
|
||||||
alwaysEnsure = true;
|
alwaysEnsure = true;
|
||||||
alwaysTangle = true;
|
alwaysTangle = true;
|
||||||
extraEmacsPackages = epkgs: [
|
extraEmacsPackages = epkgs: [
|
||||||
|
@ -22,13 +22,15 @@ with lib; let
|
||||||
epkgs.exwm
|
epkgs.exwm
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
emacsType = "pkgs.*";
|
||||||
in {
|
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 = mkOption {
|
||||||
type = with types; str;
|
type = emacsType;
|
||||||
default = "unstable";
|
default = "pkgs.emacs-unstable";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue