Secrets don't seem to work?
This commit is contained in:
parent
eb3ff0bfe0
commit
5f79252dd6
@ -44,12 +44,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 = "${host-key-pkg}/ssh_host_ed25519_key";
|
||||||
initrd-keypath = "/var/run/secrets/ssh/ssh_host_ed25519_key";
|
|
||||||
in {
|
in {
|
||||||
secrets = {
|
|
||||||
"${initrd-keypath}" = host-privkey;
|
|
||||||
};
|
|
||||||
|
|
||||||
network = {
|
network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
@ -62,7 +57,7 @@ in {
|
|||||||
port = 22;
|
port = 22;
|
||||||
authorizedKeys = admin-ssh-keys;
|
authorizedKeys = admin-ssh-keys;
|
||||||
hostKeys = [
|
hostKeys = [
|
||||||
initrd-keypath
|
host-privkey
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user