This is a nix overlay that adds an installable package to flash U2F software onto a tomu.
git clone https://github.com/teh/tomu-u2f-overlay
mkdir -p ~/.config/nixpkgs/overlays
cp -r tomu-u2f-overlay/* ~/.config/nixpkgs/overlays
nix-env -iA nixpkgs.tomu-flash-utf
# Insert your tomu key, then:
sudo $(which tomu-flash-u2f)
To reset to the original state follow these instructions.
Add the following to /etc/nixos/configuration.nix
, then nixos-rebuild switch
.
services.udev.extraRules = ''
ACTION=="add|change", KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="cdab", SYMLINK+="tomu%n", MODE="0760", GROUP="users"
'';