Revert "nixos/udev: fix outdated udev rules for network devices"

This reverts commit 45c5a915980fbe1fa6f0ff80ab2d11b60b844d9e.

This breaks PredictableNetworkInterfaceNames on systems without networkd.
We should only include this file from systemd, when networkd is enabled.

+14 -1
+13
nixos/modules/services/hardware/80-net-setup-link.rules
··· 1 + # Copied from systemd 203. 2 + ACTION=="remove", GOTO="net_name_slot_end" 3 + SUBSYSTEM!="net", GOTO="net_name_slot_end" 4 + NAME!="", GOTO="net_name_slot_end" 5 + 6 + IMPORT{cmdline}="net.ifnames" 7 + ENV{net.ifnames}=="0", GOTO="net_name_slot_end" 8 + 9 + NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}" 10 + NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}" 11 + NAME=="", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}" 12 + 13 + LABEL="net_name_slot_end"
+1 -1
nixos/modules/services/hardware/udev.nix
··· 119 119 fi 120 120 121 121 ${optionalString config.networking.usePredictableInterfaceNames '' 122 - cp ${udev}/lib/udev/rules.d/80-net-setup-link.rules $out/80-net-setup-link.rules 122 + cp ${./80-net-setup-link.rules} $out/80-net-setup-link.rules 123 123 ''} 124 124 125 125 # If auto-configuration is disabled, then remove