2023-05-03 04:51:13 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
../../../../common/cpu/amd
|
|
|
|
../../../../common/cpu/amd/pstate.nix
|
|
|
|
../../../../common/gpu/amd
|
|
|
|
../../../../common/pc/laptop
|
|
|
|
../../../../common/pc/laptop/acpi_call.nix
|
|
|
|
../../../../common/pc/laptop/ssd
|
|
|
|
];
|
|
|
|
|
|
|
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
|
|
|
boot.kernelModules = [ "synaptics_usb" ];
|
2023-05-11 22:17:26 +00:00
|
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.3") (lib.mkDefault pkgs.linuxPackages_latest);
|
2023-05-03 04:51:13 +00:00
|
|
|
|
|
|
|
# disable Scatter/Gather APU recently enabled by default,
|
|
|
|
# which results in white screen after display reconfiguration
|
|
|
|
boot.kernelParams = [ "amdgpu.sg_display=0" ];
|
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
videoDrivers = [ "amdgpu" ];
|
|
|
|
};
|
|
|
|
}
|