21 lines
No EOL
415 B
Nix
21 lines
No EOL
415 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 ];
|
|
};
|
|
};
|
|
} |