diff options
author | sefidel <contact@sefidel.net> | 2023-02-06 18:14:49 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-02-06 18:14:49 +0900 |
commit | 9d2566b5958943643d138186ebc57def41f68e51 (patch) | |
tree | 3b71d8db2aaa90550380f72c80be3b897bde06e6 /nixos | |
parent | ed8f7258538bcf3f2d2d62ab497a895ee441b41b (diff) | |
download | nixrc-9d2566b5958943643d138186ebc57def41f68e51.tar.gz nixrc-9d2566b5958943643d138186ebc57def41f68e51.zip |
feat(nixos/alpha): use persistent ssh keys
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/alpha/configuration.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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; |