nixops: enable SSH agent with opensc on desktop machines

This commit is contained in:
Sebastien Bourdeauducq 2020-06-04 19:34:55 +08:00
parent d6691c2e68
commit 2edf38876d
2 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,9 @@ in
''
PKCS11Provider "${pkgs.opensc}/lib/opensc-pkcs11.so"
'';
programs.ssh.startAgent = true;
services.gnome3.gnome-keyring.enable = pkgs.lib.mkForce false;
programs.ssh.agentPKCS11Whitelist = "${pkgs.opensc}/lib/opensc-pkcs11.so";
# Enable CUPS to print documents.
services.printing = {

View File

@ -38,6 +38,8 @@
''
PKCS11Provider "${pkgs.opensc}/lib/opensc-pkcs11.so"
'';
programs.ssh.startAgent = true;
programs.ssh.agentPKCS11Whitelist = "${pkgs.opensc}/lib/opensc-pkcs11.so";
# Enable CUPS to print documents.
services.printing = {