nixos/exwm: add option to specify Emacs package
This allows a custom Emacs package to be used for EXWM (see #99424) Co-authored-by: Lin Jian <me@linj.tech>
This commit is contained in:
committed by
Lin Jian
co-authored by
Lin Jian
parent
f10ada8471
commit
b7d20dbed1
@@ -13,7 +13,7 @@ let
|
||||
${cfg.loadScript}
|
||||
'';
|
||||
packages = epkgs: cfg.extraPackages epkgs ++ [ epkgs.exwm ];
|
||||
exwm-emacs = pkgs.emacs.pkgs.withPackages packages;
|
||||
exwm-emacs = cfg.package.pkgs.withPackages packages;
|
||||
in
|
||||
{
|
||||
|
||||
@@ -38,6 +38,10 @@ in
|
||||
file.
|
||||
'';
|
||||
};
|
||||
package = mkPackageOption pkgs "Emacs" {
|
||||
default = "emacs";
|
||||
example = [ "emacs-gtk" ];
|
||||
};
|
||||
extraPackages = mkOption {
|
||||
type = types.functionTo (types.listOf types.package);
|
||||
default = epkgs: [ ];
|
||||
|
||||
Reference in New Issue
Block a user