Configuring udev rules for the ZSA voyager on nixos
28 December, 2024 - Tags: keyboards, nix, nixos
I just got the ZSA Voyager and I want to use their configurator Oryx. I use mainly Macos for work and exclusively nixos at home.
By default nixos does not allow the browser to communicate directly with the keyboard through the WebHID API. To allow Oryx to communicate with the voyager we have to set some udev rules.
The udev rules are kindly provided by ZSA on their website so we could just copy the rules into our config using this nixos options: services.udev.*
but the rules were already packaged by a nixpkgs contributor (zsa-udev-rules).
Then all that is left to do is to add this to our nix config:
services.udev.packages = with pkgs; [
zsa-udev-rules
];
Rebuild your config and you are done.