nixos: services: ssh-server: persist host keys

This commit is contained in:
Bruno BELANYI 2021-10-22 14:05:42 +02:00
parent 4be4f5e3cd
commit 5efdd891db

View file

@ -20,6 +20,13 @@ in
}; };
}; };
# Persist SSH keys
my.system.persist.files =
let
pubAndPrivKey = key: [ key.path "${key.path}.pub" ];
in
lib.concatMap pubAndPrivKey config.services.openssh.hostKeys;
# Opens the relevant UDP ports. # Opens the relevant UDP ports.
programs.mosh.enable = true; programs.mosh.enable = true;
}; };