Use systemd-networkd system module
This commit is contained in:
@ -19,34 +19,4 @@
|
||||
# Proprietary graphics drivers
|
||||
videoDrivers = ["intel"];
|
||||
};
|
||||
|
||||
|
||||
systemd.network = let
|
||||
eth-interface = "enp*";
|
||||
wireless-interface = "wlp*";
|
||||
in {
|
||||
enable = true;
|
||||
|
||||
# LAN
|
||||
networks."50-ether" = {
|
||||
enable = true;
|
||||
|
||||
# See man systemd.link, man systemd.netdev, man systemd.network
|
||||
matchConfig = {
|
||||
# This corresponds to the [MATCH] section
|
||||
Name = eth-interface; # Match ethernet interface
|
||||
};
|
||||
|
||||
# See man systemd.network
|
||||
networkConfig = {
|
||||
# This corresponds to the [NETWORK] section
|
||||
DHCP = "yes";
|
||||
};
|
||||
|
||||
linkConfig = {
|
||||
# This corresponds to the [LINK] section
|
||||
# RequiredForOnline = "routable";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user