20 lines
413 B
Nix
20 lines
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 ];
|
||
|
};
|
||
|
};
|
||
|
}
|