Skip to content

Commit

Permalink
nixos/exwm: remove option enableDefaultConfig
Browse files Browse the repository at this point in the history
The default configuration was removed from upstream, see emacs-exwm/exwm#57

Fix: #319541
Co-authored-by: Lin Jian <[email protected]>
  • Loading branch information
stanleyj-edsn and jian-lin committed Dec 4, 2024
1 parent 0f64286 commit c82bf95
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions nixos/modules/services/x11/window-managers/exwm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ let
cfg = config.services.xserver.windowManager.exwm;
loadScript = pkgs.writeText "emacs-exwm-load" ''
${cfg.loadScript}
${optionalString cfg.enableDefaultConfig ''
(require 'exwm-config)
(exwm-config-default)
''}
'';
packages = epkgs: cfg.extraPackages epkgs ++ [ epkgs.exwm ];
exwm-emacs = pkgs.emacs.pkgs.withPackages packages;

in

{

imports = [
(mkRemovedOptionModule [ "services" "xserver" "windowManager" "exwm" "enableDefaultConfig" ]
"The upstream EXWM project no longer provides a default configuration, instead copy (parts of) exwm-config.el to your local config.")
];

options = {
services.xserver.windowManager.exwm = {
enable = mkEnableOption "exwm";
Expand All @@ -29,15 +29,9 @@ in
'';
description = ''
Emacs lisp code to be run after loading the user's init
file. If enableDefaultConfig is true, this will be run
before loading the default config.
file.
'';
};
enableDefaultConfig = mkOption {
default = true;
type = lib.types.bool;
description = "Enable an uncustomised exwm configuration.";
};
extraPackages = mkOption {
type = types.functionTo (types.listOf types.package);
default = epkgs: [];
Expand Down

0 comments on commit c82bf95

Please sign in to comment.