nixos/nat: Fix override so that sysctls are properly preserved

This commit is contained in:
William A. Kennington III 2014-10-31 16:49:32 -07:00
parent 53c287f5cd
commit ba53392bce

View file

@ -157,9 +157,9 @@ in
boot = {
kernelModules = [ "nf_nat_ftp" ];
kernel.sysctl = mkOverride 99 {
"net.ipv4.conf.all.forwarding" = true;
"net.ipv4.conf.default.forwarding" = true;
kernel.sysctl = {
"net.ipv4.conf.all.forwarding" = mkOverride 99 true;
"net.ipv4.conf.default.forwarding" = mkOverride 99 true;
};
};