mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-18 15:49:45 +01:00
b45bd0353a
Fix conflict to 2a7130d13a
28 lines
876 B
Nix
28 lines
876 B
Nix
{ pkgs, lib, ... }:
|
|
{
|
|
imports = [
|
|
../../../common/cpu/amd/pstate.nix
|
|
../../../common/gpu/nvidia/prime.nix
|
|
../../../common/pc/laptop
|
|
../../../common/pc/ssd
|
|
../../battery.nix
|
|
];
|
|
|
|
# fixing audio by overriding pins as suggested in
|
|
# https://www.reddit.com/r/ASUS/comments/mfokva/asus_strix_scar_17_g733qs_and_linux/
|
|
hardware.firmware = [
|
|
(pkgs.runCommand "jack-retask" { } ''
|
|
install -D ${./hda-jack-retask.fw} $out/lib/firmware/hda-jack-retask.fw
|
|
'')
|
|
];
|
|
boot.extraModprobeConfig = ''
|
|
options snd-hda-intel patch=hda-jack-retask.fw
|
|
'';
|
|
# before 5.12 it would interpret every keystroke as the power button
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12") (lib.mkDefault pkgs.linuxPackages_latest);
|
|
|
|
hardware.nvidia.prime = {
|
|
amdgpuBusId = "PCI:5:0:0";
|
|
nvidiaBusId = "PCI:1:0:1";
|
|
};
|
|
}
|