nixos/hosts/tor/network.nix

30 lines
726 B
Nix
Raw Normal View History

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" = {
# IPv4 settings are from `sudo dhcpcd --test`.
# IPv6 settings are from https://www.ssdvps.dk/knowledgebase/18/IPv6-Gateway.html.
matchConfig.Name = "ens3";
address = [
"91.210.59.57/25"
2024-07-06 20:56:46 +02:00
"2a12:bec4:11d3:de9f::1/64"
];
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;
};
}
];
};
};
}