Thinkfan improvements

This commit is contained in:
Thomas Avé 2026-08-11 10:20:56 +02:00
parent 801d3626d7
commit 3bfbd935fc
Signed by: thomasave
SSH Key Fingerprint: SHA256:bvIbWy6TO9+PdMTPzWy6dqkRlVQ3eSky+vQcc9aRIiE
3 changed files with 14 additions and 10 deletions

View File

@ -24,7 +24,17 @@ in {
services.logind.settings.Login = { services.logind.settings.Login = {
HandlePowerKey = "suspend"; HandlePowerKey = "suspend";
}; };
services.throttled.enable = true; # 'throttled' raises PL1/PL2 to 44W, but this machine is a Core Ultra 7 155U
# with a 15W spec sustained power. Holding it at 44W drives the chassis sensor
# (acpitz) past its 109C critical trip, which makes the kernel do a hardware
# protection shutdown. Leave the firmware's own power limits alone.
services.throttled.enable = false;
# thermald refuses to run on ThinkPads exposing thinkpad_acpi/dytc_lapmode,
# because the platform's DPTF firmware owns thermal management there. It exits
# immediately at boot, so enabling it only produces noise in the journal.
services.thermald.enable = lib.mkForce false;
services.thinkfan.enable = true; services.thinkfan.enable = true;
services.thinkfan.settings = { services.thinkfan.settings = {
sensors = [ sensors = [
@ -60,7 +70,8 @@ in {
[2 50 60] [2 50 60]
[3 56 68] [3 56 68]
[5 64 78] [5 64 78]
[7 76 95] [7 76 90]
["level disengaged" 85 32767]
]; ];
}; };

View File

@ -53,9 +53,6 @@
hardware.trackpoint.enable = lib.mkDefault true; hardware.trackpoint.enable = lib.mkDefault true;
hardware.trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable; hardware.trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable;
hardware.trackpoint.device = "TPPS/2 Synaptics TrackPoint"; hardware.trackpoint.device = "TPPS/2 Synaptics TrackPoint";
nixpkgs.config.packageOverrides = pkgs: {
zfs = pkgs.zfs_unstable;
};
boot.kernelPackages = pkgs.linuxPackages; boot.kernelPackages = pkgs.linuxPackages;
boot.zfs.forceImportRoot = false; boot.zfs.forceImportRoot = false;
hardware.firmware = with pkgs; [ hardware.firmware = with pkgs; [

View File

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
inputs,
pkgs,
...
}: {
services.udev.packages = [pkgs.yubikey-personalization]; services.udev.packages = [pkgs.yubikey-personalization];
programs.appimage.enable = true; programs.appimage.enable = true;
programs.appimage.binfmt = true; programs.appimage.binfmt = true;