2022-12-31 11:52:38 +01:00
|
|
|
{ lib, config, ... }:
|
2018-07-28 19:41:15 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2022-12-31 11:52:38 +01:00
|
|
|
inherit (config.boot) kernelPackages;
|
2018-07-28 19:41:15 +02:00
|
|
|
|
|
|
|
in
|
2018-07-22 23:22:08 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../.
|
|
|
|
../../../common/pc/laptop/ssd
|
|
|
|
];
|
|
|
|
|
2022-09-06 20:49:29 +02:00
|
|
|
# Enable broadcom-43xx firmware
|
2022-09-07 17:41:28 +02:00
|
|
|
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
2022-09-06 20:49:29 +02:00
|
|
|
|
2018-07-28 19:41:15 +02: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 23:22:08 +02:00
|
|
|
}
|