nixos/modules/base/network.nix
2023-08-10 01:13:23 +02:00

26 lines
549 B
Nix

{ lib, pkgs, ... }: {
networking = {
firewall = {
allowedTCPPorts = [ 1234 1337 8000 8080 ];
allowedUDPPorts = [ 1234 1337 8000 8080 ];
};
nameservers = [ "159.69.4.2#dns.caspervk.net" ];
networkmanager = {
enable = true;
dns = lib.mkForce "none";
};
};
services.resolved = {
enable = true;
dnssec = "true";
fallbackDns = [ "159.69.4.2#dns.caspervk.net" ];
extraConfig = ''
DNS=159.69.4.2#dns.caspervk.net
DNSOverTLS=yes
'';
};
services.vnstat.enable = true;
}