nixos/hosts/tor/network.nix

28 lines
625 B
Nix
Raw Permalink 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" = {
2024-11-12 23:17:36 +01:00
matchConfig.Name = "enp0s18";
address = [
2024-11-12 23:17:36 +01:00
"185.231.102.51/24"
"2a0c:5700:3133:650:b0ea:eeff:fedb:1f7b/64"
];
routes = [
2024-11-12 23:17:36 +01:00
{routeConfig = {Gateway = "185.231.102.1";};}
# {
# routeConfig = {
# Gateway = "fe80::200:5eff:fe00:20c";
# GatewayOnLink = true;
# };
# }
];
};
};
}