Merge pull request #122810 from lukegb/docker-and-nat
nixos/docker: fix evaluation when NAT is enabled too
This commit is contained in:
commit
7b056fe82d
|
@ -151,8 +151,8 @@ in
|
||||||
config = mkIf cfg.enable (mkMerge [{
|
config = mkIf cfg.enable (mkMerge [{
|
||||||
boot.kernelModules = [ "bridge" "veth" ];
|
boot.kernelModules = [ "bridge" "veth" ];
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv4.conf.all.forwarding" = mkOverride 99 true;
|
"net.ipv4.conf.all.forwarding" = mkOverride 98 true;
|
||||||
"net.ipv4.conf.default.forwarding" = mkOverride 99 true;
|
"net.ipv4.conf.default.forwarding" = mkOverride 98 true;
|
||||||
};
|
};
|
||||||
environment.systemPackages = [ cfg.package ]
|
environment.systemPackages = [ cfg.package ]
|
||||||
++ optional cfg.enableNvidia pkgs.nvidia-docker;
|
++ optional cfg.enableNvidia pkgs.nvidia-docker;
|
||||||
|
|
Loading…
Reference in a new issue