ssh: clean up /etc/ssh/host_keys persistence

This commit is contained in:
Colin 2024-02-25 04:47:58 +00:00
parent 04a6055d06
commit 00bf2f79cc

View File

@ -66,7 +66,8 @@ in
config = {
# persist the host key.
sane.persist.sys.byStore.plaintext = [ "/etc/ssh/host_keys" ];
# actually DON'T do it this way. else we compete with the /etc activation script and it triggers warnings on deploys.
# sane.persist.sys.byStore.plaintext = [ "/etc/ssh/host_keys" ];
# N.B.: use the plaintext `backing` dir instead of proper persistence, because this needs to be available
# during activation time (see /etc/machine-id and setupSecretsForUsers activation script).
# TODO: this should go in the same dir as `/var/log`, then. i.e. `stores.initrd` (but rename to `stores.early`).