nix-dotfiles/hosts/modules/net.nix
2026-03-02 03:38:24 -07:00

33 lines
608 B
Nix

{pkgs, ...}: {
environment.systemPackages = with pkgs; [
networkmanagerapplet
wget
curl
aria2
cloudflared
nmap
httpie
socat
posting
mtr
];
networking = {
hostName = "nixos";
networkmanager.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [80 443 57621];
allowedTCPPortRanges = [
{
from = 6000;
to = 6767;
}
];
allowedUDPPorts = [5353];
};
};
# Disable NetworkManager-wait-online to fix boot hang
systemd.services."NetworkManager-wait-online".enable = false;
}