nixpkgs/nixos/modules
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
..
config nixos/zram: make zstd the default (#87917) 2020-05-21 21:30:03 +03:00
hardware Merge pull request #73530 from eadwu/nvidia/systemd-pm 2020-05-12 13:54:45 +02:00
i18n/input-method Revert "ibus: fix dconf db installation" 2020-04-24 18:22:59 -04:00
installer Merge pull request #85996 from misuzu/nixos-install-low-memory 2020-05-08 18:40:24 +03:00
misc Update link in /etc/os-release (#85723) 2020-04-22 00:16:22 +02:00
profiles Merge pull request #74378 from ttuegel/lxc-container 2020-04-25 16:25:15 +02:00
programs Merge pull request #86643 from asbachb/zsh-bash-autocomplete 2020-05-19 11:57:25 +02:00
security Merge pull request #87016 from flokli/nsswitch-cleanup 2020-05-14 14:55:43 +02:00
services nixos/dnscrypt-proxy2: service restart on failure 2020-05-22 06:43:10 +02:00
system nixos/binfmt: move systemd-binfmt.service to binfmt module 2020-05-18 11:18:44 +02:00
tasks nixos/scripted-networking: use udev to configure link MACAddress and MTUBytes 2020-05-22 10:58:00 +02:00
testing nixos/service-runner.nix: Allow quotes in commands + test 2020-02-28 14:26:29 +01:00
virtualisation virtualisation: add vmware-image (#88523) 2020-05-22 10:03:46 +02:00
module-list.nix rkt: remove 2020-05-16 09:23:07 +10:00
rename.nix rkt: remove 2020-05-16 09:23:07 +10:00