Use systemd-networkd instead

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-14 12:29:33 +01:00
parent 691c03e79a
commit 354f6c454e
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5

View file

@ -109,31 +109,14 @@
system.stateVersion = "21.11";
networking = {
interfaces."enp0s3" = {
ipv4.addresses = [{
address = "138.201.155.128";
prefixLength = 32;
}];
ipv4.routes = [{
address = "0.0.0.0";
prefixLength = 0;
via = "172.31.1.1";
}];
ipv6.addresses = [{
address = "2a01:4f8:1c17:d953:1658:15a2:2755:360e";
prefixLength = 64;
}];
ipv6.routes = [{
address = "::";
prefixLength = 0;
via = "fe80::1";
}];
};
defaultGateway6 = {
address = "fe80::1";
interface = "enp0s3";
};
defaultGateway = "172.31.1.1";
systemd.network = {
enable = true;
networks."enp0s3".extraConfig = ''
[Match]
OriginalName = enp0s3
[Network]
Address = 2a01:4f8:1c17:d953:1658:15a2:2755:360e/64
Gateway = fe80::1
'';
};
}