added stuff
This commit is contained in:
parent
6d31f5b5a1
commit
7d4f626b7d
907 changed files with 70990 additions and 0 deletions
13
nyx/lib/network/namespacing.nix
Normal file
13
nyx/lib/network/namespacing.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
_: let
|
||||
makeServiceNsPhysical = name: {
|
||||
systemd.services."${name}".serviceConfig.NetworkNamespacePath = "/var/run/netns/physical";
|
||||
};
|
||||
makeSocketNsPhysical = name: {
|
||||
systemd.sockets."${name}".socketConfig.NetworkNamespacePath = "/var/run/netns/physical";
|
||||
};
|
||||
unRestrictNamespaces = name: {
|
||||
systemd.sockets."${name}".socketConfig.RestrictNamespaces = "~net";
|
||||
};
|
||||
in {
|
||||
inherit makeSocketNsPhysical makeServiceNsPhysical unRestrictNamespaces;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue