Merge pull request #1525 from shinishiho/patch-1
Some checks failed
Test / nixfmt (push) Has been cancelled
Test / tests (push) Has been cancelled

asus: fix charge-upto script
This commit is contained in:
Jörg Thalheim 2025-07-21 18:32:21 +00:00 committed by GitHub
commit cc66fddc6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,8 @@
}: }:
let let
p = pkgs.writeScriptBin "charge-upto" '' p = pkgs.writeScriptBin "charge-upto" ''
echo ''${0:-100} > /sys/class/power_supply/BAT?/charge_control_end_threshold #!${pkgs.bash}/bin/bash
echo ''${1:-100} > /sys/class/power_supply/BAT?/charge_control_end_threshold
''; '';
cfg = config.hardware.asus.battery; cfg = config.hardware.asus.battery;
in in