enable ssh-agent by default

This commit is contained in:
Grisha Shipunov 2025-01-09 22:38:28 +01:00
parent cf870db775
commit a84861a691
2 changed files with 8 additions and 3 deletions

View file

@ -11,7 +11,5 @@
# smartcard support
services.pcscd.enable = false;
hardware.gpgSmartcards.enable = true;
programs.gnupg.agent = {
enable = true;
};
programs.gnupg.agent.enable = true;
}

View file

@ -158,4 +158,11 @@
};
programs.gnupg.agent.pinentryPackage = pkgs.pinentry-curses;
programs.ssh = {
startAgent = true;
enableAskPassword = false;
extraConfig = ''
AddKeysToAgent yes
'';
};
}