Commit b7d20dbe authored by Garklein's avatar Garklein Committed by Lin Jian
Browse files

nixos/exwm: add option to specify Emacs package



This allows a custom Emacs package to be used for EXWM (see #99424)

Co-authored-by: default avatarLin Jian <me@linj.tech>
parent f10ada84
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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: [ ];