miku: Use evdev-proxy for the Tartarus

This commit is contained in:
PapaTutuWawa 2021-08-23 14:36:00 +02:00
parent 7cb8e80591
commit 89eb8b581f

View File

@ -83,7 +83,7 @@ in {
sessionVariables = { sessionVariables = {
# Prevent us from having to always type it out # Prevent us from having to always type it out
#NIXOS_CONFIG = "\${HOME}/Development/Personal/nixos-config/hosts/miku.nix"; NIXOS_CONFIG = "/home/${config.system.singleUser}/Development/Personal/nixos-config/hosts/miku.nix";
}; };
etc = { etc = {
@ -105,9 +105,10 @@ in {
name = "EvdevProxyTartarus" name = "EvdevProxyTartarus"
vendor = 0x1337 vendor = 0x1337
model = 0x1338 model = 0x1338
class = "Mouse" class = "Keyboard"
[[device.Simple.selector]] # This is to give a deterministic /dev/input/by-id/ path to
USBIDClass = {vendor=0x1532, model=0x022b, class="Keyboard"} # the mapped version of the Tartarus evdev node.
# (Useful for qemu)
[[device.Simple.selector]] [[device.Simple.selector]]
EVDEVClass = {phys="\"key-mapper\""} EVDEVClass = {phys="\"key-mapper\""}
''; '';
@ -231,6 +232,7 @@ in {
"/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-mouse", "/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-mouse",
"/dev/input/by-id/usb-Razer_Razer_Tartarus_V2-event-kbd", "/dev/input/by-id/usb-Razer_Razer_Tartarus_V2-event-kbd",
"/dev/input/by-id/virtual-event-EvdevProxyMouse", "/dev/input/by-id/virtual-event-EvdevProxyMouse",
"/dev/input/by-id/virtual-event-EvdevProxyTartarus",
"/dev/input/by-id/usb-Razer_Razer_BlackWidow_Ultimate-event-kbd" "/dev/input/by-id/usb-Razer_Razer_BlackWidow_Ultimate-event-kbd"
] ]
''; '';