Open natanlao opened 3 years ago
Adding the yubikey udev rules within the keeypass package is not possible. KeePass is a Nix package, which means like all packages, it does not depend on NixOS, but rather only depends on Nixpkgs. On the other hand, services.udev
is a NixOS module. NixOS modules can utilize Nix packages, but Nix packages cannot utilize NixOS modules. This is a significant difference between NixOS and other Linux distros, and it often trips people up.
Okay, thank you! With that said, I think the right move is to document this in keepassxreboot/keepassxc.
Still I think the issue is not necessarily invalid. You could still implement a NixOS option services.keepassxc.enable
and/or services.keepassxc.yubikey
, where the first installs a systemd service with keepassxc, and the second enables the corresponding udev rule.
Ok, that sounds good to me. Also, now that I check, it doesn't look like keepassxreboot/keepassxc documents platform-specific fixes like this anyway -- oversight on my part.
I marked this as stale due to inactivity. → More info
oh I assume that this same issue is why yubikey isn't showing up as an option on OSX when installed with nix-darwin
Apologies in advance if this is the wrong place to file this -- if this isn't the right place, I'd appreciate a pointer.
Describe the bug
KeePassXC 2.6.3 will not detect hardware keys by default.
To Reproduce Steps to reproduce the behavior:
Expected behavior KeePassXC detects hardware keys when inserted
Screenshots None
Additional context This problem is easily solved by adding a udev rule packaged by
yubikey-personalization
:I'm not sure how to implement this kind of fix in nixos.keepassxc, or if it should be fixed in the package or just documented somewhere.
Notify maintainers @turion @jonafato
Metadata
Maintainer information: