Try again at using secrets

This commit is contained in:
niten 2021-10-14 16:36:30 -07:00
parent 36413c80cd
commit 2f42079265

View File

@ -43,7 +43,7 @@ in {
]; ];
initrd = let initrd = let
host-key-pkg = host-keys.${config.instance.hostname}; host-key-pkg = host-keys.${config.instance.hostname};
host-privkey = "${host-key-pkg}/ssh_host_ed25519_key"; host-privkey = toPath "${host-key-pkg}/ssh_host_ed25519_key";
in { in {
network = { network = {
enable = true; enable = true;
@ -57,8 +57,11 @@ in {
port = 22; port = 22;
authorizedKeys = admin-ssh-keys; authorizedKeys = admin-ssh-keys;
hostKeys = [ hostKeys = [
host-privkey "/var/run/ssh-host-key"
]; ];
secrets = {
"/var/run/ssh-host-key" = host-privkey;
};
}; };
}; };
}; };