Files
dotfiles/system-modules/networking.nix
Lennart J. Kurzweg (Nx2) 9ccabedbb2 nxcaldav
2026-04-24 19:58:21 +02:00

23 lines
542 B
Nix

{ config, pkgs, ... }@all: with all; {
networking = {
nameservers = pkgs.lib.mkIf (hyper.host != "NxDCS") [ # wsl manages resolv.conf
"1.1.1.1"
"8.8.8.8"
];
hostName = hyper.host;
networkmanager = {
enable = true;
};
enableIPv6 = true;
firewall.allowedTCPPorts = [
(pkgs.lib.mkIf config.services.ollama.enable 11434)
80
443
8000
8080
(pkgs.lib.mkIf config.services.postfix.enable 587)
(pkgs.lib.mkIf config.services.dovecot2.enable 993)
];
};
}