secrets/ssh_server: deploy rsa and ed25519 keys
This commit is contained in:
parent
6a0495d9c3
commit
0e8741a7d4
|
@ -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"; } ];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue