From fba9b6486ec6ca2d6a2b614e604de3a23f07565d Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Wed, 1 Jan 2025 07:02:22 +0800 Subject: [PATCH] nixos/kmonad: use the official suffix for config file Both the official Emacs[1] and Vim[2] plugins use kbd as the config file suffix. [1]: https://github.com/kmonad/kbd-mode/blob/b07f3e16043fbb268b3e47fb49abc419e8b7e2d7/kbd-mode.el#L275 [2]: https://github.com/kmonad/kmonad-vim/blob/37978445197ab00edeb5b731e9ca90c2b141723f/ftdetect/kbd.vim#L18 (cherry picked from commit f83da7d9bd14f07581cc6d8d9e744e49e0aa6203) --- nixos/modules/services/hardware/kmonad.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/hardware/kmonad.nix b/nixos/modules/services/hardware/kmonad.nix index 41e4ffe2a6a9..cea9aafb377f 100644 --- a/nixos/modules/services/hardware/kmonad.nix +++ b/nixos/modules/services/hardware/kmonad.nix @@ -94,7 +94,7 @@ let ''; in pkgs.writeTextFile { - name = "${mkName keyboard.name}.cfg"; + name = "${mkName keyboard.name}.kbd"; text = lib.optionalString keyboard.defcfg.enable (defcfg + "\n") + keyboard.config; checkPhase = "${cfg.package}/bin/kmonad -d $out"; };