-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/hardware: add udev rules for Ledger Nano S #49106
Conversation
They are enabled using the option hardware.ledger-nano-s.enabled = true;
type = types.bool; | ||
default = false; | ||
description = '' | ||
Enables udev rules for Ledger Nano S devices (https://www.ledger.com/products/ledger-nano-s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice for the link to be a real link:
Enables udev rules for Ledger Nano S devices (https://www.ledger.com/products/ledger-nano-s). | |
Enables udev rules for Ledger Nano S devices | |
(<link xlink:href="https://www.ledger.com/products/ledger-nano-s"/>). |
Creating the udev rule is not much longer than setting the option; maybe it would be better to "just" document this in the wiki (for example) and let people copy the udev rule from the wiki to their conf if they have this hardware. |
There are already options for similar devices:
The YubiKey (or any other security token) also needs udev rules to allow the console user to access the corresponding hidraw device, which is why systemd/udev introduced the ENV{ID_SECURITY_TOKEN} variable in Using Maybe a single option to enable support for all known security tokens would be the best solution. |
I'll close this since |
They are enabled using the option
hardware.ledger-nano-s.enabled = true;
Motivation for this change
In order to use a Ledger Nano S the user needs access to the corresponding /dev/hidraw* devices. This change adds a config option to create a corresponding udev rule.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)