nanuqsaurus/modules/system/networking.nix
randogoth 9205ec2d23 fix
2026-02-10 08:34:43 +02:00

20 lines
479 B
Nix

{ config, lib, ... }:
{
networking = {
useDHCP = lib.mkDefault true;
nftables.enable = true;
firewall = {
enable = true;
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
};
systemd = {
network.wait-online.enable = false;
services.tailscaled.serviceConfig.Environment = [
"TS_DEBUG_FIREWALL_MODE=nftables"
];
};
boot.initrd.systemd.network.wait-online.enable = false;
}