odin: Tweak kernel settings for caddy, open port

This commit is contained in:
Erwin Boskma 2024-01-17 09:40:26 +01:00
parent 4902661b78
commit 0793b93a0a
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
2 changed files with 9 additions and 0 deletions

View file

@ -62,6 +62,11 @@
# kernelParams = [ "intel_iommu=on" "i915.enable_gvt=1" "cpufreq.default_governor=ondemand" ];
extraModulePackages = with config.boot.kernelPackages; [ gasket ];
kernel.sysctl = {
"net.core.rmem_max" = 2500000;
"net.core.wmem_max" = 2500000;
};
};
hardware.enableAllFirmware = true;

View file

@ -5,6 +5,10 @@
networkmanager.enable = false;
useNetworkd = true;
nftables.enable = true;
firewall = {
allowedTCPPorts = [ 8443 ];
};
};
systemd = {