1

Wildcard networkd interfaces

This commit is contained in:
2023-05-16 23:28:17 +02:00
parent f93b29eb14
commit d0b4aad197
2 changed files with 7 additions and 12 deletions

View File

@ -30,8 +30,10 @@
# TODO: System module for this
systemd.network = let
eth-interface = "enp0s31f6";
wireless-interface = "wlp5s0";
# eth-interface = "enp0s31f6";
eth-interface = "enp*";
# wireless-interface = "wlp5s0";
wireless-interface = "wlp*";
in {
enable = true;

View File

@ -22,14 +22,13 @@
systemd.network = let
eth-interface = "enp0s20u2";
wireless-interface = "wlp3s0";
eth-interface = "enp*";
wireless-interface = "wlp*";
in {
enable = true;
# LAN
networks."50-tether" = {
# name = "enp0s31f6"; # Network interface name?
networks."50-ether" = {
enable = true;
# See man systemd.link, man systemd.netdev, man systemd.network
@ -42,12 +41,6 @@
networkConfig = {
# This corresponds to the [NETWORK] section
DHCP = "yes";
# TODO: What does this all do?
# IPv6AcceptRA = true;
# MulticastDNS = "yes"; # Needed?
# LLMNR = "no"; # Needed?
# LinkLocalAddressing = "no"; # Needed?
};
linkConfig = {