nix/modules/networking.nix

20 lines
No EOL
413 B
Nix

{pkgs, config, hostname, ...}: {
# Enable networking
# Imports for host-specific configs:
imports = [
../hosts/${hostname}/networking.nix
]
networking = {
networkmanager = {
enable = true;
};
enableIPv6 = false;
firewall = {
enable = true;
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
interfaces.tailscale0.allowedTCPPorts = [ 22 ];
};
};
}