Merge pull request #62104 from Vizaxo/master
nixos/exwm: allow custom Emacs load script
This commit is contained in:
commit
cb42d08df2
@ -5,7 +5,7 @@ with lib;
|
|||||||
let
|
let
|
||||||
cfg = config.services.xserver.windowManager.exwm;
|
cfg = config.services.xserver.windowManager.exwm;
|
||||||
loadScript = pkgs.writeText "emacs-exwm-load" ''
|
loadScript = pkgs.writeText "emacs-exwm-load" ''
|
||||||
(require 'exwm)
|
${cfg.loadScript}
|
||||||
${optionalString cfg.enableDefaultConfig ''
|
${optionalString cfg.enableDefaultConfig ''
|
||||||
(require 'exwm-config)
|
(require 'exwm-config)
|
||||||
(exwm-config-default)
|
(exwm-config-default)
|
||||||
@ -19,6 +19,18 @@ in
|
|||||||
options = {
|
options = {
|
||||||
services.xserver.windowManager.exwm = {
|
services.xserver.windowManager.exwm = {
|
||||||
enable = mkEnableOption "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 {
|
enableDefaultConfig = mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user