Open Lownin opened 1 year ago
Got to the bottom of it - you'll need to enable services.pcscd.enable = true;
in configuration.nix.
Since this is a direct dependency, I'll submit a PR to nixpkgs to automatically include transitive dep.
@Lownin can you please test? https://github.com/NixOS/nixpkgs/pull/215740
@supermarin adding services.pcscd.enable = true;
to my configuration.nix worked. I can now set up keys on nixOS. Thanks!
@Lownin any chance you could test my PR? (remove the line from your configuration.nix and just use services.yubikey-agent.enable = true)?
@supermarin happy to help, but not sure how to make sure nixOS pulls in the PR version and not the regular one. How do I do that?
@Lownin are you using flakes? if so, you can replace inputs.nixpkgs = whatever-you-have-here
with inputs.nixpkgs = github:supermarin/nixpkgs/patch-3
and nixos-rebuild switch.
@supermarin I haven't touched Flakes yet. Just started with nixOS. Working through learning the basics, then will tackle home-manager, then flakes. Is there an unpainful way for me to do it with a monolithic configuration.nix ?
@Lownin let's take the conversation to NixOS Matrix channel and report here if the issue is resolved in the end, so we don't bloat the issue.
Sounds good. @Lownin:matrix.org
@FiloSottile you can close, this is resolved in https://github.com/NixOS/nixpkgs/pull/215740
Per the README, I've added
to my
/etc/nixos/configuration.nix
I (successfully) rebuilt with
sudo nixos-rebuild switch
however when attemptingyubikey-agent -setup
I recieve the errorI've done some googling but have not seen anything relevant. Other apps work with the yubikey, like fido via firefox, and the YubiKey personalization tool.
I've successfully used the yubikey-agent to set up keys on my Mac after installing with homebrew.
Is some other set up required on nixOS that isn't documented in the README?
Thanks!