feat: add udev rule for charge limiting

This commit is contained in:
Youwen Wu 2024-08-11 13:24:29 -07:00
parent 67f4386d1a
commit 38c5c0d550
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -99,6 +99,7 @@
services.udev.extraRules = '' services.udev.extraRules = ''
KERNEL=="cpu_dma_latency", GROUP="realtime" KERNEL=="cpu_dma_latency", GROUP="realtime"
KERNEL=="macsmc-battery", SUBSYSTEM=="power_supply", ATTR{charge_control_end_threshold}="80", ATTR{charge_control_start_threshold}="70"
''; '';
security.pam.loginLimits = [ security.pam.loginLimits = [