From 38c5c0d550ef1202b3828f606d2250a9388cc17d Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 11 Aug 2024 13:24:29 -0700 Subject: [PATCH] feat: add udev rule for charge limiting --- hosts/callisto/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/callisto/default.nix b/hosts/callisto/default.nix index 7d493bd..cde4ee2 100755 --- a/hosts/callisto/default.nix +++ b/hosts/callisto/default.nix @@ -99,6 +99,7 @@ services.udev.extraRules = '' 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 = [