renge: Use networkd

This commit is contained in:
Simon Bruder 2023-04-11 11:44:59 +02:00
parent 91e739c91b
commit 1a78049a7a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -46,16 +46,17 @@
networking = {
useDHCP = false;
usePredictableInterfaceNames = false;
interfaces.eth0 = {
useDHCP = true;
ipv6.addresses = lib.singleton {
address = "2a01:4f8:1c1e:88cd::";
prefixLength = 64;
};
systemd.network = {
enable = true;
networks = {
eth0 = {
name = "eth0";
DHCP = "yes";
domains = [ "sbruder.de" ];
address = [ "2a01:4f8:1c1e:88cd::/64" ];
gateway = [ "fe80::1" ];
};
defaultGateway6 = {
address = "fe80::1";
interface = "eth0";
};
};