nixos/hosts/tor/network.nix

27 lines
764 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-11-13 23:16:03 +01:00
# The NixOS firewall enables stateful connection tracking by default, which
# can be bad for performance.
# https://github.com/NixOS/nixpkgs/blob/2e88dbad29664f78b4c7f89f9b54d2dd2faef8e6/nixos/modules/services/networking/firewall-iptables.nix#L139
networking.firewall.enable = false;
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";};}
];
};
};
}