diff --git a/configs/nixos/modules/desktop/session/hyprland/default.nix b/configs/nixos/modules/desktop/session/hyprland/default.nix index f612930..da16e5a 100644 --- a/configs/nixos/modules/desktop/session/hyprland/default.nix +++ b/configs/nixos/modules/desktop/session/hyprland/default.nix @@ -62,34 +62,30 @@ in )) # Generate directional keybinds. (lib.listToAttrs ( - map ( + lib.concatMap ( { direction, key }: - { - name = "hyprland-focus-${direction}"; - value = { - keys = "SUPER + ${key}"; - action = { - kind = "focus"; - inherit direction; + [ + { + name = "hyprland-focus-${direction}"; + value = { + keys = "SUPER + ${key}"; + action = { + kind = "focus"; + inherit direction; + }; }; - }; - } - ) directions - )) - # Generate directional window movement keybinds. - (lib.listToAttrs ( - map ( - { direction, key }: - { - name = "hyprland-move-${direction}"; - value = { - keys = "SUPER + SHIFT + ${key}"; - action = { - kind = "move-window"; - inherit direction; + } + { + name = "hyprland-move-${direction}"; + value = { + keys = "SUPER + SHIFT + ${key}"; + action = { + kind = "move-window"; + inherit direction; + }; }; - }; - } + } + ] ) directions )) ];