1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/nixos/modules/tasks
Florian Klink 822918df4c nixos/scripted-networking: use udev to configure link MACAddress and MTUBytes
The `network-link-${i.name}` units raced with other things trying to
configure the interface, or ran before the interface was available.

Instead of running our own set of shell scripts on boot, and hoping
they're executed at the right time, we can make use of udev to configure
the interface *while they appear*, by providing `.link` files in
/etc/systemd/network/*.link to set MACAddress and MTUBytes.

This doesn't require networkd to be enabled, and is populated properly
on non-networkd systems since
https://github.com/NixOS/nixpkgs/pull/82941.

This continues clean-up work done in
https://github.com/NixOS/nixpkgs/pull/85170 for the scripted networking
stack.

The only leftover part of the `network-link-${i.name}` unit (bringing
the interface up) is moved to the beginning of the
`network-addresses-${i.name}` unit.

Fixes: https://github.com/NixOS/nixpkgs/issues/74471
Closes: https://github.com/NixOS/nixpkgs/pull/87116
2020-05-22 10:58:00 +02:00
..
filesystems nixos/zfs: add missing dependendy nettools 2020-05-18 11:25:00 +02:00
auto-upgrade.nix treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
bcache.nix
cpu-freq.nix nixos/cpufreq: Remove the alias to set the cpu frequency governor 2019-01-03 20:57:49 +09:00
encrypted-devices.nix silence warning from #63103 in encrypted-devices.nix 2020-02-18 20:58:40 -08:00
filesystems.nix nixos/filesystems: don't chown /run/keys recursively 2020-02-11 21:52:27 +01:00
lvm.nix
network-interfaces-scripted.nix nixos/scripted-networking: use udev to configure link MACAddress and MTUBytes 2020-05-22 10:58:00 +02:00
network-interfaces-systemd.nix nixos/networking: fix setting .macAddress and .mtu with networkd 2020-04-13 22:03:35 +02:00
network-interfaces.nix nixos/networking: move network-link-${i.name} to scripted networking 2020-04-13 22:03:35 +02:00
powertop.nix nixos/powertop: wait for hardware to initialize 2020-01-09 19:45:41 +08:00
scsi-link-power-management.nix
swraid.nix systemd service: remove generator-packages option 2019-08-01 00:55:35 +03:00
trackpoint.nix
tty-backgrounds-combine.sh