thinkman/hardware-config: remove nixos-hardware defaults

This commit is contained in:
Felix Buehler 2022-07-24 21:12:39 +02:00
parent 610967d8dc
commit ab3ece7522

View file

@ -1,19 +1,7 @@
{ config, lib, ... }:
{
boot = {
# acpi_call makes tlp work for newer thinkpads
kernelModules = [ "acpi_call" ];
extraModulePackages = with config.boot.kernelPackages; [ acpi_call ];
# Force use of the thinkpad_acpi driver for backlight control.
# This allows the backlight save/load systemd service to work.
kernelParams = [ "acpi_backlight=native" ];
# video driver
initrd.kernelModules = [ "i915" ];
};
services.fstrim.enable = lib.mkDefault true;
# video driver
boot.initrd.kernelModules = [ "i915" ];
# Special power management settings for ThinkPads
services.tlp.enable = true;