modules: services: ssh-server: persist host keys

This commit is contained in:
Bruno BELANYI 2021-10-22 14:05:42 +02:00
parent 808b5b7048
commit 8d752a642d

View file

@ -17,6 +17,14 @@ in
passwordAuthentication = false;
};
# Persist SSH keys
my.system.persist.files = [
"/etc/ssh/ssh_host_ed25519_key"
"/etc/ssh/ssh_host_ed25519_key.pub"
"/etc/ssh/ssh_host_rsa_key"
"/etc/ssh/ssh_host_rsa_key.pub"
];
# Opens the relevant UDP ports.
programs.mosh.enable = true;
};