2022-12-31 05:52:38 -05:00
|
|
|
{ lib, ... }:
|
2022-12-04 18:41:54 -05:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib) mkDefault;
|
|
|
|
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
../../../common/cpu/intel
|
2023-02-27 07:59:06 -05:00
|
|
|
../../../common/gpu/intel
|
2022-12-04 18:41:54 -05:00
|
|
|
../../../common/pc/laptop
|
|
|
|
../../../common/pc/laptop/acpi_call.nix
|
|
|
|
../../../common/pc/ssd
|
2022-12-04 19:26:28 -05:00
|
|
|
../sleep-resume/i2c-designware
|
2022-12-04 18:41:54 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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;
|
2022-12-04 19:26:28 -05:00
|
|
|
|
|
|
|
# Reloads i2c-designware module after suspend
|
|
|
|
services.sleep-resume.i2c-designware.enable = mkDefault true;
|
2022-12-04 18:41:54 -05:00
|
|
|
}
|