You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
723 B

  1. { lib, config, pkgs, ... }:
  2. let
  3. kernelPackages = config.boot.kernelPackages;
  4. in
  5. {
  6. imports = [
  7. ../.
  8. ../../../common/pc/laptop/ssd
  9. <nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>
  10. ];
  11. # Apparently this is currently only supported by ati_unfree drivers, not ati
  12. hardware.opengl.driSupport32Bit = false;
  13. services.xserver.videoDrivers = [ "ati" ];
  14. services.udev.extraRules =
  15. # Disable XHC1 wakeup signal to avoid resume getting triggered some time
  16. # after suspend. Reboot required for this to take effect.
  17. lib.optionalString
  18. (lib.versionAtLeast kernelPackages.kernel.version "3.13")
  19. ''SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"'';
  20. }