Skip to content

Commit

Permalink
nixos/udev: harmonize extraRules example
Browse files Browse the repository at this point in the history
Use the same sample as in https://wiki.debian.org/NetworkInterfaceNames,
which includes the `ACTION=="add"` condition.
  • Loading branch information
flokli committed Dec 22, 2020
1 parent addcb4a commit 80b0997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/hardware/udev.nix
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 80b0997

Please sign in to comment.