From 7c13b9d78247f6544a18fed87f5833760db48b0f Mon Sep 17 00:00:00 2001
From: Gregor Kleen <gkleen@yggdrasil.li>
Date: Wed, 15 Dec 2021 19:23:51 +0100
Subject: openssh: ...

---
 system-profiles/openssh/default.nix | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/system-profiles/openssh/default.nix b/system-profiles/openssh/default.nix
index 464f6b0f..98f75b94 100644
--- a/system-profiles/openssh/default.nix
+++ b/system-profiles/openssh/default.nix
@@ -18,6 +18,9 @@
       macs = [ "hmac-sha2-256-etm@openssh.com" "hmac-sha2-256" "hmac-sha2-512-etm@openssh.com" "hmac-sha2-512" ];
       kexAlgorithms = [ "curve25519-sha256@libssh.org" "diffie-hellman-group-exchange-sha256" ];
       moduliFile = config.sops.secrets.ssh_moduli.path;
+      extraConfig = ''
+        HostKeyAlgorithms sk-ssh-ed25519-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,sk-ssh-ed25519@openssh.com,ssh-ed25519,rsa-sha2-256,rsa-sha2-512
+      '';
     };
 
     programs.ssh = {
-- 
cgit v1.2.3