Skip to content

Commit

Permalink
Install evtest for NixOS desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Sep 16, 2024
1 parent 9c5496a commit d1fd820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nixos/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ in
# tramhao/termusic and tsirysndr/music-player does not figure how to use.
rhythmbox

evtest # To debug keyremapper as GH-786

# Don't use unstable channel. It frequently backported to stable channel
# - https://github.com/NixOS/nixpkgs/commits/nixos-24.05/pkgs/applications/networking/instant-messengers/signal-desktop/signal-desktop.nix
(signal-desktop.overrideAttrs (prev: {
Expand Down
2 changes: 1 addition & 1 deletion nixos/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Use another filename of "99-local.hwdb"", it is preserved for each host
#
# - Specify hardware names even if `evdev:input:*` working for mostcase. I should care both US and JIS layout
# - How to get the KEYBOARD_KEY_700??: `nix run nixpkgs#evtest -- /dev/input/event??`
# - How to get the KEYBOARD_KEY_700??: `evtest /dev/input/event??`
# - How to get the hardware name:: `udevadm info --attribute-walk /dev/input/event?? | grep -F 'ATTRS{name}'`
# - How to apply?: After nixos-rebuild switch `sudo systemd-hwdb update && sudo udevadm trigger`
environment.etc."udev/hwdb.d/98-keyboards.hwdb".text = ''
Expand Down

0 comments on commit d1fd820

Please sign in to comment.