Wildcard networkd interfaces
This commit is contained in:
@ -30,8 +30,10 @@
|
|||||||
|
|
||||||
# TODO: System module for this
|
# TODO: System module for this
|
||||||
systemd.network = let
|
systemd.network = let
|
||||||
eth-interface = "enp0s31f6";
|
# eth-interface = "enp0s31f6";
|
||||||
wireless-interface = "wlp5s0";
|
eth-interface = "enp*";
|
||||||
|
# wireless-interface = "wlp5s0";
|
||||||
|
wireless-interface = "wlp*";
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -22,14 +22,13 @@
|
|||||||
|
|
||||||
|
|
||||||
systemd.network = let
|
systemd.network = let
|
||||||
eth-interface = "enp0s20u2";
|
eth-interface = "enp*";
|
||||||
wireless-interface = "wlp3s0";
|
wireless-interface = "wlp*";
|
||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# LAN
|
# LAN
|
||||||
networks."50-tether" = {
|
networks."50-ether" = {
|
||||||
# name = "enp0s31f6"; # Network interface name?
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# See man systemd.link, man systemd.netdev, man systemd.network
|
# See man systemd.link, man systemd.netdev, man systemd.network
|
||||||
@ -42,12 +41,6 @@
|
|||||||
networkConfig = {
|
networkConfig = {
|
||||||
# This corresponds to the [NETWORK] section
|
# This corresponds to the [NETWORK] section
|
||||||
DHCP = "yes";
|
DHCP = "yes";
|
||||||
|
|
||||||
# TODO: What does this all do?
|
|
||||||
# IPv6AcceptRA = true;
|
|
||||||
# MulticastDNS = "yes"; # Needed?
|
|
||||||
# LLMNR = "no"; # Needed?
|
|
||||||
# LinkLocalAddressing = "no"; # Needed?
|
|
||||||
};
|
};
|
||||||
|
|
||||||
linkConfig = {
|
linkConfig = {
|
||||||
|
Reference in New Issue
Block a user