From 9d21f9985e279bb5d35dbf03a25644ed6e954d8c Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 6 Jul 2025 12:42:26 -0500 Subject: [PATCH] i3-sway/lib: modifier accepts any string (#7398) Currently, we aggressively limit what modifier can be used in the module system that blocks valid configurations. Allow any strings to unblock these configs. But, could be refactored further to support list of modifiers and automatically convert to a config string. Signed-off-by: Austin Horstman --- modules/services/window-managers/i3-sway/lib/options.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/window-managers/i3-sway/lib/options.nix b/modules/services/window-managers/i3-sway/lib/options.nix index ed6192f23..d62aef5ad 100644 --- a/modules/services/window-managers/i3-sway/lib/options.nix +++ b/modules/services/window-managers/i3-sway/lib/options.nix @@ -639,7 +639,7 @@ in }; modifier = mkOption { - type = types.enum [ + type = types.either (types.enum [ "Shift" "Control" "Mod1" @@ -647,7 +647,7 @@ in "Mod3" "Mod4" "Mod5" - ]; + ]) types.str; default = "Mod1"; description = "Modifier key that is used for all default keybindings."; example = "Mod4";