persist ssh host keys

This commit is contained in:
LavaDesu 2021-05-16 22:36:56 +07:00
parent 334976edf9
commit beee908e58
Signed by: cilly
GPG key ID: 6500251E087653C9

View file

@ -2,7 +2,13 @@
networking.hostName = "winter";
system.stateVersion = "20.09";
environment.etc."machine-id".source = "/mnt/bcachefs/machine-id";
environment.etc = {
"machine-id".source = "/mnt/bcachefs/machine-id";
"ssh/ssh_host_rsa_key".source = "/mnt/bcachefs/ssh_host_rsa_key";
"ssh/ssh_host_rsa_key.pub".source = "/mnt/bcachefs/ssh_host_rsa_key.pub";
"ssh/ssh_host_ed25519_key".source = "/mnt/bcachefs/ssh_host_ed25519_key";
"ssh/ssh_host_ed25519_key.pub".source = "/mnt/bcachefs/ssh_host_ed25519_key.pub";
};
users.mutableUsers = false;
imports = [