secrets/ssh_server: deploy rsa and ed25519 keys

This commit is contained in:
makefu 2023-09-03 14:24:26 +02:00
parent 6a0495d9c3
commit 0e8741a7d4
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -1,8 +1,8 @@
{
{ config, ... }: {
sops.secrets."ssh_host_rsa_key" = {};
sops.secrets."ssh_host_ed25519_key" = {};
services.openssh.hostKeys = lib.mkForce [
{ bits = 4096; path = (config.sops.secrets."ssh_host_rsa_key".path); type = "rsa"; }
services.openssh.hostKeys = [
{ bits = 4096; path = config.sops.secrets."ssh_host_rsa_key".path; type = "rsa"; }
{ path = config.sops.secrets."ssh_host_ed25519_key".path; type = "ed25519"; } ];
}