Update modules/workspace/misc.nix modules/workspace/ssh.nix

This commit is contained in:
Alexander Bantyev 2020-02-28 12:16:25 +03:00
parent 89c2cc0725
commit c8f96ac263
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 5 additions and 8 deletions

View File

@ -34,6 +34,11 @@
key = "687558B21E04FE92B255BED0E081FF12ADCB4AD5"; key = "687558B21E04FE92B255BED0E081FF12ADCB4AD5";
}; };
}; };
services.gpg-agent = {
enable = true;
enableSshSupport = true;
};
systemd.user.sockets.gpg-agent-ssh = lib.mkForce { };
news.display = "silent"; news.display = "silent";
programs.command-not-found = { programs.command-not-found = {
enable = true; enable = true;

View File

@ -18,14 +18,6 @@
gpg-connect-agent /bye gpg-connect-agent /bye
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
''; '';
programs = {
ssh.startAgent = false;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
home-manager.users.balsoft.home.file.".gnupg/scdaemon.conf".text = "reader-port Yubico Yubi"; home-manager.users.balsoft.home.file.".gnupg/scdaemon.conf".text = "reader-port Yubico Yubi";