Enable thinkfan
This commit is contained in:
parent
eaa60c2149
commit
3065deb6e1
|
@ -11,4 +11,10 @@
|
|||
services.udev.extraRules = ''
|
||||
SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{model_name}=="01AV405", ATTR{capacity}=="[0-5]", RUN+="${config.systemd.package}/bin/systemctl suspend -i"
|
||||
'';
|
||||
|
||||
# Enable thinkfan
|
||||
services.thinkfan.enable = true;
|
||||
systemd.services.thinkfan.preStart = ''
|
||||
/run/current-system/sw/bin/modprobe -r thinkpad_acpi && /run/current-system/sw/bin/modprobe thinkpad_acpi
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue