nixos-config/2configs/secrets/ssh_server.nix

7 lines
288 B
Nix

{ config, ... }: {
services.openssh.hostKeys = [
{ bits = 4096; path = config.sops.secrets."${config.clanCore.machineName}-ssh_host_rsa_key".path; type = "rsa"; }
{ path = config.sops.secrets."${config.clanCore.machineName}-ssh_host_ed25519_key".path; type = "ed25519"; } ];
}