From b7ef804b1d92d409b55c955fcfbaec8ceb62063a Mon Sep 17 00:00:00 2001 From: polwex Date: Thu, 5 Sep 2024 12:42:01 +0700 Subject: m --- hosts/local/master/keyboard.nix | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 hosts/local/master/keyboard.nix (limited to 'hosts/local/master/keyboard.nix') diff --git a/hosts/local/master/keyboard.nix b/hosts/local/master/keyboard.nix new file mode 100644 index 0000000..0aa0687 --- /dev/null +++ b/hosts/local/master/keyboard.nix @@ -0,0 +1,44 @@ +{ config, lib, pkgs, ... }: + +{ + services.logind.extraConfig = '' + # don’t shutdown when power button is short-pressed + HandlePowerKey=ignore + ''; + +# config file keeps getting rewritten but I don't know by who + # i18n.inputMethod = { + # enabled = "fcitx5"; + # fcitx5.addons = with pkgs; [ + # fcitx5-mozc + # # mozc-ut is better, wat do + # fcitx5-gtk + # libsForQt5.fcitx5-qt + # fcitx5-lua + # fcitx5-configtool + # fcitx5-rime + # ]; + # }; + environment.variables = { + GTK_IM_MODULE = "fcitx"; + QT_IM_MODULE = "fcitx"; + XMODIFIERS = "@im=fcitx"; + FCITX_SOCKET = "default"; + }; + + + #kmonad + services.kmonad ={ + enable = true; + + keyboards.internal = { + device = "/dev/input/by-id/usb-RAPOO_Rapoo_2.4G_Wireless_Device-if02-event-kbd"; + config = builtins.readFile ./rapoo.kbd; + + # defcfg = { + # enable = true; + # fallthrough = true; + # }; + }; + }; +} -- cgit v1.2.3