nixos: services: ssh-server: persist host keys
This commit is contained in:
parent
4be4f5e3cd
commit
8dc6b19c6e
|
@ -20,6 +20,13 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
# Persist SSH keys
|
||||
my.system.persist.files =
|
||||
let
|
||||
pubAndPrivKey = key: [ key.path "${key.path}.pub" ];
|
||||
in
|
||||
lib.concatMap pubAndPrivKey systemConfig.services.openssh.hostKeys;
|
||||
|
||||
# Opens the relevant UDP ports.
|
||||
programs.mosh.enable = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue