1
0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-06-26 06:28:32 +02:00
nixos-hardware/dell/xps/15-9500/default.nix
bahaynes d56b2e96a6
Updated default (non-NVIDIA) config.
Removed xps-common, and migrated it to default.nix.
2020-07-27 13:00:20 -04:00

25 lines
788 B
Nix

{ lib, ... }:
let
thermald-conf = ./thermald-conf.xml;
in
{
imports = [
../../../common/cpu/intel
../../../common/pc/laptop
../../../common/pc/laptop/ssd
];
# Boot loader
boot.kernelParams = lib.mkDefault [ "acpi_rev_override" ];
# This will save you money and possibly your life!
services.thermald.enable = lib.mkDefault true;
# Thermald doesn't have a default config for the 9500 yet, the one in this repo
# was generated with dptfxtract-static (https://github.com/intel/dptfxtract)
services.thermald.configFile = lib.mkDefault thermald-conf;
# Set the tlp config to powersave explictly. TLP is enabled in common/pc/laptop.
services.tlp.extraConfig = lib.mkDefault "CPU_SCALING_GOVERNOR_ON_AC=powersave\nCPU_SCALING_GOVERNOR_ON_BAT=powersave";
}