mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-05 07:06:24 +01:00
create input module for catbook-j
This commit is contained in:
parent
d002a100dd
commit
14adf2731f
|
@ -15,6 +15,7 @@
|
|||
./hardware-configuration.nix
|
||||
../../common.nix
|
||||
../../modules
|
||||
./modules
|
||||
];
|
||||
jade = {
|
||||
desktop = {
|
||||
|
@ -25,29 +26,6 @@
|
|||
mail.enable = true;
|
||||
gaming.enable = true;
|
||||
};
|
||||
input.remapping = {
|
||||
enable = true;
|
||||
devices."AT Translated Set 2 keyboard" = {
|
||||
swapKeys = [
|
||||
["KEY_Y" "KEY_Z"]
|
||||
["KEY_LEFTALT" "KEY_LEFTMETA"]
|
||||
];
|
||||
dual_role = [
|
||||
{
|
||||
input = "KEY_CAPSLOCK";
|
||||
hold = ["KEY_LEFTCTRL"];
|
||||
tap = ["KEY_ESC"];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
hardware.trackpoint = {
|
||||
enable = true;
|
||||
# device = "MELF0410:00 1FD2:7007";
|
||||
device = "DELL081C:00 044E:121F Mouse";
|
||||
sensitivity = 255;
|
||||
};
|
||||
|
||||
hardware.usb-modeswitch.enable = true;
|
||||
|
@ -81,8 +59,6 @@
|
|||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
services.xserver.libinput.touchpad.tapping = false;
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.plantuml
|
||||
pkgs.mqttui
|
||||
|
|
5
hosts/catbook-j/modules/default.nix
Normal file
5
hosts/catbook-j/modules/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
imports = [
|
||||
./input.nix
|
||||
];
|
||||
}
|
27
hosts/catbook-j/modules/input.nix
Normal file
27
hosts/catbook-j/modules/input.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{...}: {
|
||||
# key remapping
|
||||
jade.input.remapping = {
|
||||
enable = true;
|
||||
devices."AT Translated Set 2 keyboard" = {
|
||||
swapKeys = [
|
||||
["KEY_Y" "KEY_Z"]
|
||||
["KEY_LEFTALT" "KEY_LEFTMETA"]
|
||||
];
|
||||
dual_role = [
|
||||
{
|
||||
input = "KEY_CAPSLOCK";
|
||||
hold = ["KEY_LEFTCTRL"];
|
||||
tap = ["KEY_ESC"];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
hardware.trackpoint = {
|
||||
enable = true;
|
||||
device = "TPPS/2 IBM TrackPoint";
|
||||
sensitivity = 220;
|
||||
};
|
||||
|
||||
services.xserver.libinput.touchpad.tapping = false;
|
||||
}
|
Loading…
Reference in a new issue