nixos-module/container/anon: make nat, iproute2 config optional

Esse commit está contido em:
Astro 2021-05-06 01:09:09 +02:00
commit 4402d724bb
1 arquivos alterados com 2 adições e 2 exclusões

Ver arquivo

@ -98,7 +98,7 @@ in
'';
}) tunnels;
networking.nat = lib.optionalAttrs enabled {
networking.nat = lib.mkIf enabled {
enable = true;
enableIPv6 = true;
internalInterfaces = [ "core" ];
@ -107,7 +107,7 @@ in
};
# Configure rt_table name
networking.iproute2 = {
networking.iproute2 = lib.mkIf enabled {
enable = true;
rttablesExtraConfig = ''
${toString vpn4Table} vpn4