From e34e3dbff4c54befe5e5575083c6b54779817329 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com>
Date: Tue, 20 May 2025 20:57:49 +0200
Subject: [PATCH] fix(home-server): fix conflicting udhcpc option

Set `boot.initrd.network.udhcpc.enable` based on
`boot.initrd.systemd.enable`.
---
 hosts/home-server/default.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hosts/home-server/default.nix b/hosts/home-server/default.nix
index e947b56..0d9cd89 100644
--- a/hosts/home-server/default.nix
+++ b/hosts/home-server/default.nix
@@ -138,7 +138,7 @@ in
   boot.initrd.availableKernelModules = [ "igb" ];
   boot.initrd.network = {
     enable = true;
-    udhcpc.enable = true;
+    udhcpc.enable = !config.boot.initrd.systemd.enable;
     ssh = {
       enable = true;
       hostKeys = map (f: f.path) hostKeys;