Secrets don't seem to work?

This commit is contained in:
niten 2021-10-13 22:04:49 -07:00
parent eb3ff0bfe0
commit 5f79252dd6

View File

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