summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-12-22 11:44:20 +0100
committerGitHub <noreply@github.com>2020-12-22 11:44:20 +0100
commitda1b28ab8f361fbe14dc539cd69ce1bfd015fd68 (patch)
treee472d05265bf26042ed26659dda179cf78041309
parentf62fcde81af30a26e1d1a2e901c0f1328fb01c2b (diff)
parent80b09974997ad754cdcc1861bb987da5891f7bf9 (diff)
Merge pull request #107385 from flokli/udev-rule-update-example
nixos/udev: harmonize extraRules example
-rw-r--r--nixos/modules/services/hardware/udev.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/hardware/udev.nix b/nixos/modules/services/hardware/udev.nix
index a212adb7342d..63027f7744dc 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 = ''