summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-03-16 15:36:16 +0100
committerMel <mel@rnrd.eu>2026-03-16 20:51:39 +0100
commit136684919f101ce00b726f41c15cf8625dbfd8ba (patch)
tree6d7959024d75c270cf892c6cc3ffe742fe2775b8 /machines
parent748cc6f5752dc6c2bb05d3978cb49fda37ad6369 (diff)
downloadminerals-136684919f101ce00b726f41c15cf8625dbfd8ba.tar.zst
minerals-136684919f101ce00b726f41c15cf8625dbfd8ba.zip
Use r8125 kernel module for RTL8125 instead of the generic r8169 on Wolfram
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines')
-rw-r--r--machines/wolfram/devices.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/machines/wolfram/devices.nix b/machines/wolfram/devices.nix
index 14c578e..bd3a07e 100644
--- a/machines/wolfram/devices.nix
+++ b/machines/wolfram/devices.nix
@@ -5,6 +5,17 @@
   boot = {
     kernelPackages = pkgs.linuxPackages_latest;
 
+    # do not use default kernel module (r8169) for the realtek rtl8125 ethernet
+    # controller, as it has issues with packet loss and can't keep up with the high
+    # 2.5g link speed.
+    # the out-of-tree module r8125 also has issues however, as apparently when sending
+    # off packets the hardware offloading done on the network chip fails massively,
+    # corrupting a huge amount of packets, breaking off connections and distorting video.
+    # the fix to disable the hardware offloading is handled by systemd-networkd below.
+    blacklistedKernelModules = [ "r8169" ];
+    extraModulePackages = [ config.boot.kernelPackages.r8125 ];
+    kernelModules = [ "r8125" ];
+
     loader = {
       systemd-boot.enable = true;
       efi.canTouchEfiVariables = true;