nixos

NixOS server files. Mirror from https://git.nordgedanken.dev/kubernetes/nixos
git clone git://archive.git.mtrnord.blog/MTRNord/nixos.git
Log | Files | Refs | README

commit edbc88761751d0b27a10bd50c2c361954efd5dc4
parent 24756372ef52b33f738bbb65c00825e6fa997dd9
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed,  9 Aug 2023 13:54:55 +0200

Fix remote unlock

Diffstat:
Mnixos/worker-1/configuration.nix | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -130,7 +130,9 @@ enable = true; # Defaults to 22. port = 2222; - # TODO: Stored in plain text on boot partition, so don't reuse your host + # The key is generated using `ssh-keygen -t ed25519 -N "" -f /etc/secrets/initrd/ssh_host_ed25519_key` + # + # Stored in plain text on boot partition, so don't reuse your host # keys. Also, make sure to use a boot loader with support for initrd # secrets (e.g. systemd-boot), or this will be exposed in the nix store # to unprivileged users. @@ -142,10 +144,10 @@ # prompt that writes to /tmp/continue if successful. network.postCommands = let - disk = "/dev/disk/by-uuid/7116e0c2-b7f5-4960-a283-b4a958213bcd"; + disk = "/dev/disk/by-uuid/56da9aee-dc91-4736-ae22-781e46ccb25e"; in '' - echo 'cryptsetup open ${disk} root --type luks && echo > /tmp/continue' >> /root/.profile + echo 'cryptsetup open ${disk} enc --type luks && echo > /tmp/continue' >> /root/.profile echo 'starting sshd...' ''; # Block the boot process until /tmp/continue is written to