From beb1c9eb75af5ab1152942969732f49975d0b862 Mon Sep 17 00:00:00 2001 From: Andreas Schaafsma Date: Tue, 23 Dec 2025 02:00:32 +0100 Subject: [PATCH] update ethernet driver config --- .../drivebystation-nix/hardware/hardware-configuration.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 980ca4c..9d271b7 100644 --- a/systems/x86_64-linux/drivebystation-nix/hardware/hardware-configuration.nix +++ b/systems/x86_64-linux/drivebystation-nix/hardware/hardware-configuration.nix @@ -17,10 +17,10 @@ # boot.kernelPackages = pkgs.linuxPackages; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; - boot.kernelModules = [ "kvm-amd" "4vl2loopback" ]; - boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ]; + boot.kernelModules = [ "kvm-amd" "r8125" "4vl2loopback" ]; + boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback r8125 ]; boot.supportedFilesystems = [ "ntfs" ]; - boot.blacklistedKernelModules = [ ]; + boot.blacklistedKernelModules = [ "r8169" ]; fileSystems."/" = { device = "/dev/disk/by-uuid/563805a1-5277-4488-bbdd-c1a7ed37be76"; fsType = "ext4"; @@ -44,6 +44,7 @@ boot.resumeDevice = "/dev/disk/by-uuid/563805a1-5277-4488-bbdd-c1a7ed37be76"; # the unlocked drive mapping boot.kernelParams = [ "resume_offset=78399488" #sudo filefrag -v /var/lib/swapfile|awk 'NR==4{gsub(/\./,"");print $4;}' + "r8125.aspm=0" # realtek network adapter fix ]; security.protectKernelImage = false;