1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-19 16:19:45 +01:00
nixos-hardware/apple/macbook-pro/11-5/default.nix

25 lines
576 B
Nix
Raw Normal View History

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