Files
dotfiles/system-modules/networking.nix
Lennart J. Kurzweg (Nx2) 511dac22a8 wsl manages resolv.conf
2025-09-25 07:23:33 +00:00

21 lines
427 B
Nix

{ config, pkgs, ... }@all: with all; {
networking = {
nameservers = pkgs.lib.mkIf (hyper.host != "NxWSL") [ # 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
];
};
}