mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-04 01:07:14 +08:00
asus: fix charge-upto script
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user