From a4054a06e58a1ab1a2ba92c02eddbc173ffdefe8 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Wed, 1 Jan 2025 06:49:07 +0800 Subject: [PATCH] nixos/kmonad: simplify config for default keyboard name (cherry picked from commit 23768e2a1233f9695eda51e00c3054439e4ab33f) --- nixos/modules/services/hardware/kmonad.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nixos/modules/services/hardware/kmonad.nix b/nixos/modules/services/hardware/kmonad.nix index 2b5157afb6b9..8fa721a5f233 100644 --- a/nixos/modules/services/hardware/kmonad.nix +++ b/nixos/modules/services/hardware/kmonad.nix @@ -15,6 +15,7 @@ let options = { name = lib.mkOption { type = lib.types.str; + default = name; example = "laptop-internal"; description = "Keyboard name."; }; @@ -71,10 +72,6 @@ let description = "Keyboard configuration."; }; }; - - config = { - name = lib.mkDefault name; - }; }; # Create a complete KMonad configuration file: