Correct typo?
Getting "A definition for option `fudo.secrets.host-secrets' is not of type `attribute set of attribute set of submoduless'." But it is, I don't get it. Maybe it's due to the typo? Also, switch back to using secrets.
This commit is contained in:
parent
7264d98dd8
commit
b22b7083e7
|
@ -51,6 +51,10 @@ in {
|
||||||
host-key-pkg = host-keys.${config.instance.hostname};
|
host-key-pkg = host-keys.${config.instance.hostname};
|
||||||
host-privkey = builtins.toPath "${host-key-pkg}/${key-filename}";
|
host-privkey = builtins.toPath "${host-key-pkg}/${key-filename}";
|
||||||
in {
|
in {
|
||||||
|
secrets = {
|
||||||
|
config.fudo.secrets.host-secrets.${hostname}.initrd-ssh-host-key.target-file = null;
|
||||||
|
};
|
||||||
|
|
||||||
network = {
|
network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -74,7 +78,7 @@ in {
|
||||||
secrets.host-secrets = mapAttrs
|
secrets.host-secrets = mapAttrs
|
||||||
(hostname: key-pkg: {
|
(hostname: key-pkg: {
|
||||||
initrd-ssh-host-key = {
|
initrd-ssh-host-key = {
|
||||||
source-file = "${key-pkg}/${key-fdilename}";
|
source-file = "${key-pkg}/${key-filename}";
|
||||||
target-file = "/var/run/ssh/${key-filename}";
|
target-file = "/var/run/ssh/${key-filename}";
|
||||||
user = "root";
|
user = "root";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue