From 32b46b83df919e931d9e6d413c8bffa60d1ecca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 8 Mar 2026 12:19:55 +0100 Subject: [PATCH] acer/predator/helios/300: remove redundant options boot.initrd.availableKernelModules and boot.kernelModules are machine-specific and belong in the user's hardware-configuration.nix as generated by nixos-generate-config. nvidia.open is already set by common/gpu/nvidia/pascal (Pascal GPUs don't support the open driver). nvidiaSettings defaults to true in the NixOS nvidia module. graphics.enable/enable32Bit should be left to the user or their desktop environment to decide. --- acer/predator/helios/300/ph315-51/default.nix | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/acer/predator/helios/300/ph315-51/default.nix b/acer/predator/helios/300/ph315-51/default.nix index c9a80241..af215d2b 100644 --- a/acer/predator/helios/300/ph315-51/default.nix +++ b/acer/predator/helios/300/ph315-51/default.nix @@ -12,31 +12,10 @@ in ../../../../../common/gpu/nvidia/pascal ]; - boot.initrd.availableKernelModules = [ - "xhci_pci" - "ahci" - "usb_storage" - "usbhid" - "sd_mod" - "rtsx_pci_sdmmc" - ]; - boot.kernelModules = [ "kvm-intel" ]; - hardware = { - graphics = { - enable = mkDefault true; - enable32Bit = mkDefault true; - }; - nvidia = { - # Required to fix screen tearing with PRIME modesetting.enable = mkDefault true; - open = mkDefault false; - nvidiaSettings = mkDefault true; - # Enable PRIME for hybrid graphics with sync mode - # Rendering is completely delegated to the dGPU - # iGPU only displays the rendered framebuffers copied from the dGPU. prime = { sync.enable = mkDefault true; intelBusId = "PCI:0@0:2:0"; @@ -44,4 +23,4 @@ in }; }; }; -} \ No newline at end of file +}