From 63eb46dcd5bdde87ef2f6a11cc64f9dc91e9f913 Mon Sep 17 00:00:00 2001 From: 7c6f434c <7c6f434c@mail.ru> Date: Sat, 7 Jun 2025 14:01:22 +0200 Subject: [PATCH] nixos/dhcpcd: specify withUdev when overriding the package for no udev --- nixos/modules/services/networking/dhcpcd.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index 6aecbec7bd4a..e3616c64b95f 100644 --- a/nixos/modules/services/networking/dhcpcd.nix +++ b/nixos/modules/services/networking/dhcpcd.nix @@ -6,7 +6,13 @@ }: let - dhcpcd = if !config.boot.isContainer then pkgs.dhcpcd else pkgs.dhcpcd.override { udev = null; }; + dhcpcd = + if !config.boot.isContainer then + pkgs.dhcpcd + else + pkgs.dhcpcd.override { + withUdev = false; + }; cfg = config.networking.dhcpcd;