summaryrefslogtreecommitdiffstats
path: root/dell/xps/13-9370/default.nix
blob: dbe852f0c27f889d22778d07b54bccfba2aed49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ lib, pkgs, ... }:

{
  imports = [
    ../../../common/cpu/intel/kaby-lake
    ../../../common/pc/laptop
    ../../../common/pc/laptop/acpi_call.nix
  ];

  # Force S3 sleep mode. See README.wiki for details.
  boot.kernelParams = [ "mem_sleep_default=deep" ];

  # touchpad goes over i2c
  boot.blacklistedKernelModules = [ "psmouse" ];

  services.throttled.enable = lib.mkDefault true;

  # This will save you money and possibly your life!
  services.thermald.enable = true;
}