layne: replace networkmanager with networkd
This commit is contained in:
parent
1bb0b1a820
commit
0c6ed52ab2
1 changed files with 25 additions and 7 deletions
|
@ -7,14 +7,32 @@
|
|||
"2620:fe::9#dns.quad9.net"
|
||||
"149.112.112.112#dns.quad9.net"
|
||||
];
|
||||
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
dhcp = "dhcpcd";
|
||||
dns = "systemd-resolved";
|
||||
};
|
||||
|
||||
useDHCP = lib.mkDefault false;
|
||||
useNetworkd = true;
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks = {
|
||||
"41-ether" = {
|
||||
enable = true;
|
||||
matchConfig = {
|
||||
Type = "ether";
|
||||
};
|
||||
networkConfig = {
|
||||
DHCP = "yes";
|
||||
};
|
||||
dhcpV4Config = {
|
||||
UseDomains = true;
|
||||
};
|
||||
ipv6AcceptRAConfig = {
|
||||
UseDomains = true;
|
||||
};
|
||||
linkConfig = {
|
||||
RequiredForOnline = "yes";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.resolved = {
|
||||
|
|
Loading…
Reference in a new issue