From 2bffc1adf16f6e83da6964264cdbf3ef1eddfb4b Mon Sep 17 00:00:00 2001 From: Marin Date: Fri, 10 Feb 2023 17:13:09 -0500 Subject: [PATCH] nixos/yubikey-agent: Add dependency to pcsd.service Issue: after installing, running `yubikey-agent -setup` produces the following error: ``` nixOS: Failed to connect to the YubiKey: connecting to pscs: the Smart card resource manager is not running ``` More on this issue: https://github.com/FiloSottile/yubikey-agent/issues/137 --- nixos/modules/services/security/yubikey-agent.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/security/yubikey-agent.nix b/nixos/modules/services/security/yubikey-agent.nix index c91ff3e69a0a..ee57ec8bf812 100644 --- a/nixos/modules/services/security/yubikey-agent.nix +++ b/nixos/modules/services/security/yubikey-agent.nix @@ -57,6 +57,9 @@ in ]; }; + # Yubikey-agent expects pcsd to be running in order to function. + services.pcscd.enable = true; + environment.extraInit = '' if [ -z "$SSH_AUTH_SOCK" -a -n "$XDG_RUNTIME_DIR" ]; then export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/yubikey-agent/yubikey-agent.sock"