From b90bfdaed83874fdcbfa7d868755885ee94c158d Mon Sep 17 00:00:00 2001 From: Andreas Schaafsma Date: Thu, 12 Feb 2026 19:27:47 +0100 Subject: [PATCH] merge disable efficient energy mode for dogshit realtek chipset --- .../hardware/hardware-configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/systems/x86_64-linux/drivebystation-nix/hardware/hardware-configuration.nix b/systems/x86_64-linux/drivebystation-nix/hardware/hardware-configuration.nix index ed4694a..1ab7414 100644 --- a/systems/x86_64-linux/drivebystation-nix/hardware/hardware-configuration.nix +++ b/systems/x86_64-linux/drivebystation-nix/hardware/hardware-configuration.nix @@ -23,6 +23,20 @@ boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback r8125 ]; boot.supportedFilesystems = [ "ntfs" ]; boot.blacklistedKernelModules = [ "r8169" ]; + + systemd.services.disable-realtek-eee = { + description = "Disable Realtek Energy Efficient Ethernet"; + wantedBy = [ "multi-user.target" ]; + after = [ "network.target" ]; + + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.ethtool}/bin/ethtool --set-eee enp75s0 eee off"; + RemainAfterExit = true; + }; + }; + + fileSystems."/" = { device = "/dev/disk/by-uuid/563805a1-5277-4488-bbdd-c1a7ed37be76"; fsType = "ext4";