2018-07-28 17:41:15 +00:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
kernelPackages = config.boot.kernelPackages;
|
|
|
|
|
|
|
|
in
|
2018-07-22 21:22:08 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../.
|
|
|
|
../../../common/pc/laptop/ssd
|
2022-09-06 19:32:22 +00:00
|
|
|
|
|
|
|
# Radeon Venus XT is a GCN 1 microarchitecture
|
|
|
|
# (amdgpu driver support is experimental and must be explicitly enabled)
|
|
|
|
../../../common/gpu/amd/southern-islands
|
2018-07-22 21:22:08 +00:00
|
|
|
];
|
|
|
|
|
2022-09-06 18:49:29 +00:00
|
|
|
# Enable broadcom-43xx firmware
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
2018-07-28 17:41:15 +00:00
|
|
|
services.udev.extraRules =
|
|
|
|
# Disable XHC1 wakeup signal to avoid resume getting triggered some time
|
|
|
|
# after suspend. Reboot required for this to take effect.
|
|
|
|
lib.optionalString
|
|
|
|
(lib.versionAtLeast kernelPackages.kernel.version "3.13")
|
|
|
|
''SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"'';
|
2018-07-22 21:22:08 +00:00
|
|
|
}
|