From ab3ece75228e24329d8bdafa4b9e2068a453c921 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Sun, 24 Jul 2022 21:12:39 +0200 Subject: [PATCH] thinkman/hardware-config: remove nixos-hardware defaults --- nixos/thinkman/hardware-configuration.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/nixos/thinkman/hardware-configuration.nix b/nixos/thinkman/hardware-configuration.nix index 02bc3af..0e74410 100644 --- a/nixos/thinkman/hardware-configuration.nix +++ b/nixos/thinkman/hardware-configuration.nix @@ -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;