From 93bd508dccafa30eb3d62fb403586ab5a24fc00a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com>
Date: Tue, 20 May 2025 23:03:42 +0200
Subject: [PATCH] fix: properly fix failing `systemd-vconsole-setup` during
 systemd initrd

Enable `console.earlySetup` as it's required for systemd-vconsole-setup.
---
 hardware/base.nix | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/hardware/base.nix b/hardware/base.nix
index 866b36e..1d119ab 100644
--- a/hardware/base.nix
+++ b/hardware/base.nix
@@ -13,9 +13,7 @@
   boot.loader.efi.canTouchEfiVariables = true;
 
   boot.initrd.systemd.enable = true;
-
-  # prevents `systemd-vconsole-setup` failing during systemd initrd
-  systemd.services.systemd-vconsole-setup.unitConfig.After = "local-fs.target";
+  console.earlySetup = true;
 
   services.smartd.enable = true;
   services.smartd.notifications.x11.enable = true;