From 0c565157500fafdf2845751e7009741cd2fab675 Mon Sep 17 00:00:00 2001 From: Lgmrszd Date: Fri, 11 Apr 2025 18:32:16 +0400 Subject: [PATCH] laptop: add thinkpad-specific things --- hosts/laptop/configuration.nix | 4 ++++ hosts/laptop/hardware-configuration.nix | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 9b3eaab..9c5b09c 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -310,6 +310,10 @@ in #media-session.enable = true; }; + services.thinkfan = { + enable = true; + }; + # Enable touchpad support (enabled default in most desktopManager). services.libinput.enable = true; diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix index ba6a15e..bb94530 100644 --- a/hosts/laptop/hardware-configuration.nix +++ b/hosts/laptop/hardware-configuration.nix @@ -16,7 +16,8 @@ in boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "ahci" "nvme" "usbhid" "uas" "usb_storage" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ ]; + boot.kernelParams = [ "i915.enable_psr=0" ]; + boot.extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; fileSystems."/" = { device = root;