add emacsType and this should work now

This commit is contained in:
Sakooooo 2024-02-14 20:29:22 +04:00
parent b36af608e3
commit 048bf80a6d
Signed by: sako
GPG key ID: FE52FD65B76E4751
2 changed files with 6 additions and 4 deletions

View file

@ -121,7 +121,7 @@
emacs = {
enable = true;
daemon = false;
type = "unstable-pgtk";
type = "pkgs.emacs-unstable-pgtk";
};
};
cc.enable = true;

View file

@ -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";
};
};