feat(ThinkPad): Added thinkPad special settings

This commit is contained in:
Black_Raven committed 2026-10-14 21:19:03 +03:00
1 parent ae4454b5fa
commit 502f748f0d
2 files changed
+52 -1

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
./modules/swap.nix
./modules/intel.nix
./modules/grab.nix
#./modules/nvidia.nix
./modules/thinkpad.nix
./modules/fingerprint.nix
(import ../modules/common.nix {
+51
View File
@@ -0,0 +1,51 @@
{ config, lib, pkgs, ... }: {
hardware = {
enableRedistributableFirmware = true;
trackpoint = {
enable = true;
emulateWheel = true;
};
};
powerManagement.enable = true;
services = {
fwupd.enable = true;
thermald.enable = true;
fprintd.enable = true;
logind.settings.Login = {
HandleLidSwitch = "suspend-then-hibernate";
HandleLidSwitchExternalPower = "suspend-then-hibernate";
HandlePowerKey = "poweroff";
};
tlp.settings = {
START_CHARGE_THRESH_BAT0 = 70;
STOP_CHARGE_THRESH_BAT0 = 95;
START_CHARGE_THRESH_BAT1 = 70;
STOP_CHARGE_THRESH_BAT1 = 85;
RESTORE_THRESHOLDS_ON_BAT = 1;
AHCI_RUNTIME_PM_ON_AC = "on";
AHCI_RUNTIME_PM_ON_BAT = "auto";
SATA_LINKPWR_ON_AC = "med_power_with_dipm";
SATA_LINKPWR_ON_BAT = "med_power_with_dipm";
USB_AUTOSUSPEND = 1;
};
};
networking.networkmanager.wifi.powersave = true;
environment.systemPackages = with pkgs; [
acpi
lm_sensors
pciutils
powertop
smartmontools
usbutils
nvme-cli
];
}