nixos/modules/base/network.nix
Casper V. Kristensen 7536e3a2b1 Base
2023-08-01 15:35:59 +02:00

24 lines
474 B
Nix

{ 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;
}