mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-18 00:49:41 +01:00
30 lines
787 B
Nix
30 lines
787 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
let
|
||
|
inherit (lib) mkDefault;
|
||
|
|
||
|
in {
|
||
|
imports = [
|
||
|
../../../common/cpu/intel
|
||
|
../../../common/gpu/intel.nix
|
||
|
../../../common/pc/laptop
|
||
|
../../../common/pc/laptop/acpi_call.nix
|
||
|
../../../common/pc/ssd
|
||
|
];
|
||
|
|
||
|
# Force S3 sleep mode. See README.wiki for details.
|
||
|
boot.kernelParams = [ "mem_sleep_default=deep" ];
|
||
|
|
||
|
# Touchpad goes over i2c, and the psmouse module interferes with it
|
||
|
boot.blacklistedKernelModules = [ "psmouse" ];
|
||
|
|
||
|
# Includes the Wi-Fi and Bluetooth firmware for the QCA6390.
|
||
|
hardware.enableRedistributableFirmware = mkDefault true;
|
||
|
|
||
|
# Allows for updating firmware via `fwupdmgr`.
|
||
|
services.fwupd.enable = mkDefault true;
|
||
|
|
||
|
# This will save you money and possibly your life!
|
||
|
services.thermald.enable = mkDefault true;
|
||
|
}
|