/tomu-u2f-overlay

Nix package overlay for a tomu flasher

Primary LanguageNix

What is this?

This is a nix overlay that adds an installable package to flash U2F software onto a tomu.

How do I?

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.

Use as normal user on NixOS

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"
'';