summaryrefslogtreecommitdiff
path: root/hosts/local/master/keyboard.nix
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2024-09-05 12:42:01 +0700
committerpolwex <polwex@sortug.com>2024-09-05 12:42:01 +0700
commitb7ef804b1d92d409b55c955fcfbaec8ceb62063a (patch)
treee5f05241a260ca4c0bb73e9a4f40707b797ce6fb /hosts/local/master/keyboard.nix
parent6a7fa5ae7c243b3dd1f0d5a4221c3b69a4bdbab7 (diff)
m
Diffstat (limited to 'hosts/local/master/keyboard.nix')
-rw-r--r--hosts/local/master/keyboard.nix44
1 files changed, 44 insertions, 0 deletions
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;
+ # };
+ };
+ };
+}