Move secrets to the right place

This commit is contained in:
niten 2021-10-14 16:39:43 -07:00
parent e4d4f6d7af
commit 8a928d9e25

View File

@ -45,6 +45,10 @@ in {
host-key-pkg = host-keys.${config.instance.hostname};
host-privkey = builtins.toPath "${host-key-pkg}/ssh_host_ed25519_key";
in {
secrets = {
"/var/run/ssh-host-key" = host-privkey;
};
network = {
enable = true;
@ -59,9 +63,6 @@ in {
hostKeys = [
"/var/run/ssh-host-key"
];
secrets = {
"/var/run/ssh-host-key" = host-privkey;
};
};
};
};