IfState: Difference between revisions
m fix: ifstate website revision |
m Change link to current site wiki |
||
| Line 15: | Line 15: | ||
systemd.services."<name>".serviceConfig.NetworkNamespacePath = "/var/run/netns/<netnsName>"; | systemd.services."<name>".serviceConfig.NetworkNamespacePath = "/var/run/netns/<netnsName>"; | ||
} | } | ||
</syntaxhighlight>When using [ | </syntaxhighlight>When using [[NixOS Containers|nixos-containers]], network namespaces allow you to configure the network outside the container. This separation simplifies management and ensures the container’s network setup is independent of its internal configuration.<syntaxhighlight lang="nixos"> | ||
{ | { | ||
containers."<name>".networkNamespace = "/var/run/netns/<netnsName>"; | containers."<name>".networkNamespace = "/var/run/netns/<netnsName>"; | ||