36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ lib, pkgs, ... }:
|
|
let
|
|
thermald-conf = ./thermald-conf.xml;
|
|
in
|
|
{
|
|
imports = [
|
|
../../../common/cpu/intel
|
|
../../../common/pc/laptop
|
|
../../../common/pc/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;
|
|
|
|
# Enable fingerprint reader
|
|
services.fprintd = {
|
|
enable = lib.mkDefault true;
|
|
# Fingerprint sensor will not work without these settings
|
|
tod.enable = true;
|
|
tod.driver = pkgs.libfprint-2-tod1-goodix;
|
|
};
|
|
|
|
# WiFi speed is slow and crashes by default (https://bugzilla.kernel.org/show_bug.cgi?id=213381)
|
|
# disable_11ax - required until ax driver support is fixed
|
|
# power_save - works well on this card
|
|
boot.extraModprobeConfig = ''
|
|
options iwlwifi power_save=1 disable_11ax=1
|
|
'';
|
|
}
|