mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
feat: add udev rule for charge limiting
This commit is contained in:
parent
67f4386d1a
commit
38c5c0d550
1 changed files with 1 additions and 0 deletions
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in a new issue