nixos/modules/base/network.nix

24 lines
474 B
Nix
Raw Normal View History

2023-08-01 15:35:09 +02:00
{ pkgs, ... }: {
networking = {
firewall = {
allowedTCPPorts = [ 1234 1337 8000 8080 ];
allowedUDPPorts = [ 1234 1337 8000 8080 ];
};
nameservers = [ "159.69.4.2#dns.caspervk.net" ];
networkmanager = {
enable = true;
};
};
services.resolved = {
enable = true;
dnssec = "true";
fallbackDns = [ "159.69.4.2#dns.caspervk.net" ];
extraConfig = ''
DNSOverTLS=yes
'';
};
services.vnstat.enable = true;
}