1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00

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
commit a9335078db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"