Secrets don't seem to work?
This commit is contained in:
parent
eb3ff0bfe0
commit
5f79252dd6
@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user