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 # smartcard support
services.pcscd.enable = false; services.pcscd.enable = false;
hardware.gpgSmartcards.enable = true; hardware.gpgSmartcards.enable = true;
programs.gnupg.agent = { programs.gnupg.agent.enable = true;
enable = true;
};
} }

View file

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