From 80b09974997ad754cdcc1861bb987da5891f7bf9 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 22 Dec 2020 11:13:13 +0100 Subject: [PATCH] nixos/udev: harmonize extraRules example Use the same sample as in https://wiki.debian.org/NetworkInterfaceNames, which includes the `ACTION=="add"` condition. --- nixos/modules/services/hardware/udev.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/hardware/udev.nix b/nixos/modules/services/hardware/udev.nix index a212adb7342dd1..63027f7744dc9a 100644 --- a/nixos/modules/services/hardware/udev.nix +++ b/nixos/modules/services/hardware/udev.nix @@ -205,7 +205,7 @@ in extraRules = mkOption { default = ""; example = '' - KERNEL=="eth*", ATTR{address}=="00:1D:60:B9:6D:4F", NAME="my_fast_network_card" + SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1D:60:B9:6D:4F", KERNEL=="eth*", NAME="my_fast_network_card" ''; type = types.lines; description = ''