nixos-config/2configs/secrets/ssh_server.nix
2023-08-18 11:21:37 +02:00

9 lines
307 B
Nix

{
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"; }
{ path = config.sops.secrets."ssh_host_ed25519_key".path; type = "ed25519"; } ];
}