Merge pull request #215740 from supermarin/patch-3

nixos/yubikey-agent: Add dependency to pcsd.service
This commit is contained in:
Nick Cao
2023-02-12 06:20:55 +08:00
committed by GitHub
@@ -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"