diff options
author | Florian Klink <flokli@flokli.de> | 2020-12-22 11:13:13 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-12-22 11:16:29 +0100 |
commit | 80b09974997ad754cdcc1861bb987da5891f7bf9 (patch) | |
tree | e16218a8112f555a6da20f6ca8cf886e3cc3ec48 /nixos/modules/services/hardware/udev.nix | |
parent | addcb4a04a43905a3c236b27035e6d5c2f037dec (diff) | |
download | nixpkgs-80b09974997ad754cdcc1861bb987da5891f7bf9.tar nixpkgs-80b09974997ad754cdcc1861bb987da5891f7bf9.tar.gz nixpkgs-80b09974997ad754cdcc1861bb987da5891f7bf9.tar.bz2 nixpkgs-80b09974997ad754cdcc1861bb987da5891f7bf9.tar.lz nixpkgs-80b09974997ad754cdcc1861bb987da5891f7bf9.tar.xz nixpkgs-80b09974997ad754cdcc1861bb987da5891f7bf9.tar.zst nixpkgs-80b09974997ad754cdcc1861bb987da5891f7bf9.zip |
nixos/udev: harmonize extraRules example
Use the same sample as in https://wiki.debian.org/NetworkInterfaceNames, which includes the `ACTION=="add"` condition.
Diffstat (limited to 'nixos/modules/services/hardware/udev.nix')
-rw-r--r-- | nixos/modules/services/hardware/udev.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/udev.nix b/nixos/modules/services/hardware/udev.nix index a212adb7342..63027f7744d 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 = '' |