ssh.nix: accept ecdsa

This commit is contained in:
Charlie Root 2025-03-04 22:32:40 +01:00
commit bb45d93cb5
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

@ -4,6 +4,11 @@ in {
options.modules.programs.ssh.enable = mkEnableOption "ssh";
config = {
programs.ssh.startAgent = true;
programs.ssh.pubkeyAcceptedKeyTypes = [
"ssh-rsa"
"ecdsa-sha2-nistp521"
];
services.openssh = {
enable = true;
ports = [8997];