mirror of
https://github.com/oddlama/nixos-extra-modules.git
synced 2025-10-10 13:50:39 +02:00
fix: only rename permanent address devices
This commit is contained in:
parent
558954ebb2
commit
da6945497b
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
name = "interface-names-udev-rules";
|
||||
text = concatStringsSep "\n" (
|
||||
flip mapAttrsToList cfg
|
||||
(name: mac: ''SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="${mac}", NAME:="${name}"'')
|
||||
(name: mac: ''SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="${mac}", ATTR{addr_assign_type}=="0", NAME:="${name}"'')
|
||||
);
|
||||
destination = "/etc/udev/rules.d/01-interface-names.rules";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue