From 990a8892c2ad68e9f865a8dd47c3b08af8fc7b07 Mon Sep 17 00:00:00 2001 From: dadada Date: Fri, 27 Oct 2023 23:58:17 +0200 Subject: [PATCH] ninurta: wait for LUKS2 passphrase from SSH --- nixos/ninurta/configuration.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nixos/ninurta/configuration.nix b/nixos/ninurta/configuration.nix index 9ad21ec..d7c469e 100644 --- a/nixos/ninurta/configuration.nix +++ b/nixos/ninurta/configuration.nix @@ -59,7 +59,16 @@ in message = "Refusing to store private keys in store"; }; - boot.kernelParams = [ "ip=dhcp" ]; + boot.kernelParams = [ + # Use the in-kernel DHCP client (yes that exists) + "ip=dhcp" + + # Wait forever for the filesystem root to show up + "rootflags=x-systemd.device-timeout=0" + + # Wait forever to enter the LUKS passphrase via SSH + "rd.luks.options=timeout=0" + ]; boot.initrd = { network = { enable = true;