From 96fcf3b017d813fac300ecb821b6db6b7b5d0c40 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 24 May 2020 13:00:51 +0200 Subject: [PATCH] sway: fix `config.keybindings` example (cherry picked from commit f90b86b5771df940f063988b08211f9c7a895551) --- modules/services/window-managers/i3-sway/sway.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/services/window-managers/i3-sway/sway.nix b/modules/services/window-managers/i3-sway/sway.nix index 58c5bbe1f..956560a93 100644 --- a/modules/services/window-managers/i3-sway/sway.nix +++ b/modules/services/window-managers/i3-sway/sway.nix @@ -130,10 +130,8 @@ let ''; example = literalExample '' let - modifier = cfg.config.modifier; - in - - lib.mkOptionDefault { + modifier = config.wayland.windowManager.sway.config.modifier; + in lib.mkOptionDefault { "''${modifier}+Return" = "exec ${cfg.config.terminal}"; "''${modifier}+Shift+q" = "kill"; "''${modifier}+d" = "exec ${cfg.config.menu}";