diff --git a/config/hosts/spark.nix b/config/hosts/spark.nix index 395202b..1cdda18 100644 --- a/config/hosts/spark.nix +++ b/config/hosts/spark.nix @@ -22,5 +22,11 @@ public-key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGs8MfR3d6f1Llqk5dn/ypODUT1Oi4SQGof/YvOPNf14"; key-path = "/state/master-key/key"; }; - # initrd-ip = "10.0.5.108"; + initrd-network = { + ip = "10.0.5.108"; + keypair = { + public-key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIABpau0W1FAOnwHysFm/9uQ0XqMrB2GoCIfin5uLBEs8"; + private-key-file = "/state/ssh/initrd/ssh_ed25519_key"; + }; + }; } diff --git a/lib/fudo/initrd-network.nix b/lib/fudo/initrd-network.nix index 82bd0d9..8b00a5c 100644 --- a/lib/fudo/initrd-network.nix +++ b/lib/fudo/initrd-network.nix @@ -36,8 +36,6 @@ in { "ip=${initrd-cfg.ip}" ]; initrd = { - secrets = mkForce { }; - network = { enable = true; @@ -67,7 +65,7 @@ in { network-definition.hosts = mapAttrs' (hostname: hostOpts: nameValuePair "${hostname}-recovery" { - ipv4-address = hostOpts.initrd-network-config.ip; + ipv4-address = hostOpts.initrd-network.ip; description = "${hostname} initrd host"; }) initrd-network-hosts;