From 9f882b5695be89a63a988d7e028863cc013440ee Mon Sep 17 00:00:00 2001 From: alexion Date: Sun, 11 Oct 2026 12:23:40 -0400 Subject: [PATCH] refactor(registry): inline keybind action checks --- configs/nixos/registry/keybind.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/configs/nixos/registry/keybind.nix b/configs/nixos/registry/keybind.nix index 8bbb829..05530b7 100644 --- a/configs/nixos/registry/keybind.nix +++ b/configs/nixos/registry/keybind.nix @@ -10,11 +10,11 @@ entries: lib.all ( entry: - let - action = entry.value.action; - in - (action.kind == "exec" && action.command != null) - || (action.kind == "focus" && lib.xor (action.direction != null) (action.workspace != null)) + (entry.value.action.kind == "exec" && entry.value.action.command != null) + || ( + entry.value.action.kind == "focus" + && lib.xor (entry.value.action.direction != null) (entry.value.action.workspace != null) + ) ) entries; message = "Desktop keybind actions must set the fields their kind requires."; }