mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-08 11:36:10 +01:00
Merge pull request #1525 from shinishiho/patch-1
asus: fix charge-upto script
This commit is contained in:
commit
cc66fddc6c
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue