summaryrefslogtreecommitdiff
path: root/hosts/local/master/keyboard.nix
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2024-09-07 00:24:53 +0700
committerpolwex <polwex@sortug.com>2024-09-07 00:24:53 +0700
commit11d272540fb51775b2794d99d2c4bc4d66108d16 (patch)
tree1ae106f6fe41b924b5c9dc7de4488759e429b4c9 /hosts/local/master/keyboard.nix
parent479d74e5146a601c2244153e8aa89e723b30cbe5 (diff)
parentb7ef804b1d92d409b55c955fcfbaec8ceb62063a (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;
+ # };
+ };
+ };
+}