nix/modules/networking.nix

21 lines
421 B
Nix
Raw Normal View History

{pkgs, config, hostname, ...}: {
# Enable networking
# Imports for host-specific configs:
imports = [
2023-08-15 09:30:50 +02:00
../hosts/${hostname}/nixos/networking.nix
2023-07-12 16:43:21 +02:00
];
networking = {
networkmanager = {
enable = true;
};
enableIPv6 = false;
firewall = {
enable = true;
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
interfaces.tailscale0.allowedTCPPorts = [ 22 ];
};
};
}