rico0: replace networkmanager with systemd-networkd

This commit is contained in:
Adithya 2024-07-04 23:02:06 +05:30
parent bfac3cb938
commit 1931cd38b9
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -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 = {