From dd07b22b0642a03c705186b0a9a6d0495462ceca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Wed, 27 May 2026 10:44:47 +0200 Subject: [PATCH] feat: disable luks unlock timeout --- features/bootloader.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/features/bootloader.nix b/features/bootloader.nix index e583ebb..243e878 100644 --- a/features/bootloader.nix +++ b/features/bootloader.nix @@ -98,6 +98,10 @@ boot.initrd.systemd.enable = true; + # wait forever at the luks prompt instead of timing out the device + # job; applies whether the prompt is local or forwarded via initrd ssh + boot.initrd.systemd.settings.Manager.DefaultDeviceTimeoutSec = "infinity"; + # block simpledrm so fbcon defers until the gpu driver binds; avoids # the simpledrm -> real-driver fbcon transition that mangles console # text and leaves the luks prompt typing offset from the visible @@ -136,8 +140,6 @@ }) (lib.mkIf cfg.initrdSsh.enable { - boot.initrd.systemd.settings.Manager.DefaultDeviceTimeoutSec = "infinity"; - boot.initrd.availableKernelModules = [ cfg.initrdSsh.networkModule ]; boot.kernelParams = lib.mkIf cfg.initrdSsh.ip.enable [