fix: ensure ip forwarding is enabled for vmix namespaces

NixOS firewall sets conf.all.forwarding=false via mkDefault, which
overrides ip_forward=1. Use normal priority to beat mkDefault.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Git Sagar 2026-06-15 11:06:06 -03:00
parent 192ea9b54d
commit 40e80df84a

View file

@ -286,5 +286,6 @@ in
{ {
config.systemd.services = namespaceGlobalService // networkServices; config.systemd.services = namespaceGlobalService // networkServices;
config.systemd.targets = networkTargets; config.systemd.targets = networkTargets;
config.boot.kernel.sysctl."net.ipv4.ip_forward" = lib.mkDefault 1; config.boot.kernel.sysctl."net.ipv4.ip_forward" = lib.mkForce 1;
config.boot.kernel.sysctl."net.ipv4.conf.all.forwarding" = lib.mkForce true;
} }