-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/network-interfaces-systemd: improve default ethernet network matching #347283
Conversation
…tching Reliably match physical ethernet interfaces by using `Kind=!*` with `Type=ether`. This will exclude veth interfaces, which have `Kind=veth`.
Yea I've been wondering about changing it to work like this for a while now. They do this in |
I think we should keep them separate. A WLAN device could also be a hotspot or an ad-hoc network. |
That makes plenty of sense to me. Thanks. |
NixOS#347283 changed the default to exclude non-physical network Kind, but that unfortunately also includes `veth` which LXC uses for its network interfaces. Re-enable that functionality so users can use networkd with useDHCP.
This broke networkd+useDHCP on LXC containers. Fix submitted here: #358519 |
NixOS#347283 changed the default to exclude non-physical network Kind, but that unfortunately also includes `veth` which LXC uses for its network interfaces. Re-enable that functionality so users can use networkd with useDHCP.
NixOS#347283 changed the default to exclude non-physical network Kind, but that unfortunately also includes `veth` which LXC uses for its network interfaces. Re-enable that functionality so users can use networkd with useDHCP.
Reliably match physical ethernet interfaces by using
Kind=!*
withType=ether
. This will exclude veth interfaces, which haveKind=veth
.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nixosTests.networking.networkd.dhcpDefault
nixosTests.networking.networkd.dhcpSimple
nixosTests.networking.networkd.dhcpOneIf
nixosTests.networking.networkd.static
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.