From 31817e8d9db70bfeabe3b64a74fefdc10a5ce5c8 Mon Sep 17 00:00:00 2001 From: mystic-neutron Date: Sat, 7 Mar 2026 23:06:58 -0500 Subject: [PATCH 1/3] added: Default config for Acer Predator Helios 300 --- README.md | 1 + acer/predator/helios/300/ph315-51/README.md | 7 +++ acer/predator/helios/300/ph315-51/default.nix | 47 +++++++++++++++++++ flake.nix | 1 + 4 files changed, 56 insertions(+) create mode 100644 acer/predator/helios/300/ph315-51/README.md create mode 100644 acer/predator/helios/300/ph315-51/default.nix diff --git a/README.md b/README.md index 5027c693..7099f003 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,7 @@ See code for all available configurations. | Model | Path | Flake Module | | --------------------------------------------------------------------------------- | ------------------------------------------------------- | -------------------------------------- | | [Acer Aspire 4810T](acer/aspire/4810t) | `` | `acer-aspire-4810t` | +| [Acer Predator Helios 300 (PH315-51)](acer/predator/helios/300/ph315-51/) | `` | `acer-predator-helios-300-ph315-51` | | [Airis N990](airis/n990) | `` | `airis-n990` | | [Apple iMac 12,2](apple/imac/12-2) | `` | `apple-imac-12-2` | | [Apple iMac 14.2](apple/imac/14-2) | `` | `apple-imac-14-2` | diff --git a/acer/predator/helios/300/ph315-51/README.md b/acer/predator/helios/300/ph315-51/README.md new file mode 100644 index 00000000..45a9f5e7 --- /dev/null +++ b/acer/predator/helios/300/ph315-51/README.md @@ -0,0 +1,7 @@ +# Acer Predator Helios 300 (PH315-51) + +## Hardware Configuration: + +- Intel Core i5 (8th Gen) 8300H / 2.3 GHz +- NVIDIA GeForce GTX 1050 Ti +- 128GB SSD + 1TB HDD \ No newline at end of file diff --git a/acer/predator/helios/300/ph315-51/default.nix b/acer/predator/helios/300/ph315-51/default.nix new file mode 100644 index 00000000..c9a80241 --- /dev/null +++ b/acer/predator/helios/300/ph315-51/default.nix @@ -0,0 +1,47 @@ +{ + lib, + ... +}: +let + inherit (lib) mkDefault; +in +{ + imports = [ + ../../../../../common/pc/laptop + ../../../../../common/cpu/intel/coffee-lake + ../../../../../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"; + nvidiaBusId = "PCI:1@0:0:0"; + }; + }; + }; +} \ No newline at end of file diff --git a/flake.nix b/flake.nix index a680bf52..d1e9bb97 100644 --- a/flake.nix +++ b/flake.nix @@ -46,6 +46,7 @@ in { acer-aspire-4810t = import ./acer/aspire/4810t; + acer-predator-helios-300-ph315-51 = import ./acer/predator/helios/300/ph315-51; airis-n990 = import ./airis/n990; aoostar-r1-n100 = import ./aoostar/r1/n100; apple-imac-12-2 = import ./apple/imac/12-2; 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 2/3] 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 +} From d593602e66f074beaeb94711f7ccfeed5bda985e Mon Sep 17 00:00:00 2001 From: mystic-neutron Date: Sat, 14 Mar 2026 19:33:41 -0400 Subject: [PATCH 3/3] update: enable powerManagement --- acer/predator/helios/300/ph315-51/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/acer/predator/helios/300/ph315-51/default.nix b/acer/predator/helios/300/ph315-51/default.nix index af215d2b..e331d209 100644 --- a/acer/predator/helios/300/ph315-51/default.nix +++ b/acer/predator/helios/300/ph315-51/default.nix @@ -15,6 +15,7 @@ in hardware = { nvidia = { modesetting.enable = mkDefault true; + powerManagement.enable = mkDefault true; prime = { sync.enable = mkDefault true;