b9a7e21ef6
It is going to be merged into nixpkgs, under `nixos/hardware`. This will give better discoverability, and considering the low turnover (less than 100 commits in the last year and only 350 total) it won’t make any dent on the size of nixpkgs. We have a monorepo, let’s use it.
28 lines
723 B
Nix
28 lines
723 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
kernelPackages = config.boot.kernelPackages;
|
|
|
|
in
|
|
|
|
{
|
|
imports = [
|
|
../.
|
|
../../../common/pc/laptop/ssd
|
|
<nixpkgs/nixos/modules/hardware/network/broadcom-43xx.nix>
|
|
];
|
|
|
|
# Apparently this is currently only supported by ati_unfree drivers, not ati
|
|
hardware.opengl.driSupport32Bit = false;
|
|
|
|
services.xserver.videoDrivers = [ "ati" ];
|
|
|
|
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"'';
|
|
}
|