From 9d2566b5958943643d138186ebc57def41f68e51 Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 6 Feb 2023 18:14:49 +0900 Subject: feat(nixos/alpha): use persistent ssh keys --- nixos/alpha/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'nixos') diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix index aa57e87..67f56a2 100644 --- a/nixos/alpha/configuration.nix +++ b/nixos/alpha/configuration.nix @@ -115,6 +115,17 @@ services.openssh.enable = true; services.openssh.passwordAuthentication = false; + services.openssh.hostKeys = [ + { + path = "/persist/ssh/ssh_host_ed25519_key"; + type = "ed25519"; + } + { + path = "/persist/ssh/ssh_host_rsa_key"; + type = "rsa"; + bits = 4096; + } + ]; sound.enable = false; -- cgit 1.4.1