mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-10 06:32:42 +02:00
fix(lib): disable ipv6 for all kubevirt nodes
This commit is contained in:
@@ -40,6 +40,8 @@ in {
|
|||||||
"net.ipv4.neigh.default.gc_interval" = 60;
|
"net.ipv4.neigh.default.gc_interval" = 60;
|
||||||
"net.ipv4.neigh.default.gc_stale_time" = 120;
|
"net.ipv4.neigh.default.gc_stale_time" = 120;
|
||||||
|
|
||||||
|
"net.ipv6.conf.all.disable_ipv6" = 1; # disable ipv6
|
||||||
|
|
||||||
# --- memory --- #
|
# --- memory --- #
|
||||||
"vm.swappiness" = 0; # don't swap unless absolutely necessary
|
"vm.swappiness" = 0; # don't swap unless absolutely necessary
|
||||||
};
|
};
|
||||||
@@ -88,6 +90,7 @@ in {
|
|||||||
# Set the host's address on the OVS bridge interface instead of the physical interface!
|
# Set the host's address on the OVS bridge interface instead of the physical interface!
|
||||||
interfaces.ovsbr1 = networking.hostsInterface.${hostName}.interfaces.${iface};
|
interfaces.ovsbr1 = networking.hostsInterface.${hostName}.interfaces.${iface};
|
||||||
dhcpcd.enable = false; # disable dhcpcd, it's useless for the host
|
dhcpcd.enable = false; # disable dhcpcd, it's useless for the host
|
||||||
|
enableIPv6 = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|||||||
Reference in New Issue
Block a user