Wildcard networkd interfaces
This commit is contained in:
@ -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;
|
||||
|
||||
|
@ -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 = {
|
||||
|
Reference in New Issue
Block a user