nanuqsaurus/modules/system/networking.nix

21 lines
479 B
Nix
Raw Normal View History

2026-02-10 08:32:23 +02:00
{ config, lib, ... }:
{
2026-02-10 08:27:59 +02:00
networking = {
useDHCP = lib.mkDefault true;
nftables.enable = true;
firewall = {
enable = true;
trustedInterfaces = [ "tailscale0" ];
allowedUDPPorts = [ config.services.tailscale.port ];
};
2026-02-10 08:32:23 +02:00
};
2026-02-10 08:34:43 +02:00
systemd = {
network.wait-online.enable = false;
services.tailscaled.serviceConfig.Environment = [
"TS_DEBUG_FIREWALL_MODE=nftables"
];
};
2026-02-10 08:27:59 +02:00
boot.initrd.systemd.network.wait-online.enable = false;
}