diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2020-11-28 18:47:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 18:47:21 -0800 |
commit | cb42d08df2298fc892c6183af7e3908bf29f09fc (patch) | |
tree | 13d06dfb1c748134bbcf529ccecc8e3bc947ced6 /nixos/modules | |
parent | aa5dd7ef5e838e7915c3a9694db22c464857a82b (diff) | |
parent | 47aa44ba3768267eba94c08dcbdd9502431bb018 (diff) |
Merge pull request #62104 from Vizaxo/master
nixos/exwm: allow custom Emacs load script
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/x11/window-managers/exwm.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/window-managers/exwm.nix b/nixos/modules/services/x11/window-managers/exwm.nix index dc1d957c1709..88e13f4dbfb0 100644 --- a/nixos/modules/services/x11/window-managers/exwm.nix +++ b/nixos/modules/services/x11/window-managers/exwm.nix @@ -5,7 +5,7 @@ with lib; let cfg = config.services.xserver.windowManager.exwm; loadScript = pkgs.writeText "emacs-exwm-load" '' - (require 'exwm) + ${cfg.loadScript} ${optionalString cfg.enableDefaultConfig '' (require 'exwm-config) (exwm-config-default) @@ -19,6 +19,18 @@ in options = { services.xserver.windowManager.exwm = { enable = mkEnableOption "exwm"; + loadScript = mkOption { + default = "(require 'exwm)"; + example = literalExample '' + (require 'exwm) + (exwm-enable) + ''; + 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. + ''; + }; enableDefaultConfig = mkOption { default = true; type = lib.types.bool; |