2024-10-07 23:46:06 +02:00
|
|
|
{lib, ...}: {
|
|
|
|
networking = {
|
|
|
|
# Use dns.caspervk.net IPv6 address ::2 for uncensored DNS
|
|
|
|
nameservers = lib.mkForce [
|
|
|
|
"2a01:4f8:1c0c:70d1::2#dns.caspervk.net"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-02-24 19:36:29 +01:00
|
|
|
systemd.network = {
|
|
|
|
networks."10-lan" = {
|
2024-02-24 16:43:10 +01:00
|
|
|
# IPv4 settings are from `sudo dhcpcd --test`.
|
|
|
|
# IPv6 settings are from https://www.ssdvps.dk/knowledgebase/18/IPv6-Gateway.html.
|
2024-06-11 23:32:35 +02:00
|
|
|
matchConfig.Name = "ens3";
|
2024-02-24 16:43:10 +01:00
|
|
|
address = [
|
|
|
|
"91.210.59.57/25"
|
2024-07-06 20:56:46 +02:00
|
|
|
"2a12:bec4:11d3:de9f::1/64"
|
2024-02-24 16:43:10 +01:00
|
|
|
];
|
|
|
|
routes = [
|
2024-03-05 22:57:41 +01:00
|
|
|
{routeConfig = {Gateway = "91.210.59.1";};}
|
|
|
|
{
|
|
|
|
routeConfig = {
|
2024-07-06 20:56:46 +02:00
|
|
|
Gateway = "2a12:bec4:11d3::1";
|
2024-03-05 22:57:41 +01:00
|
|
|
GatewayOnLink = true;
|
|
|
|
};
|
|
|
|
}
|
2024-02-24 16:43:10 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|