Rename pkgs to packages

This commit is contained in:
2026-03-23 20:43:11 +01:00
parent 8de280d7e5
commit b31791b9ef
21 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
{
writeShellApplication,
kmod,
}:
writeShellApplication {
name = "acer-battery-health-mode";
runtimeInputs = [kmod]; # contains insmod
text = ''
#/usr/bin/env sh
# Using following tool https://github.com/frederik-h/acer-wmi-battery.git
PROJECT_LOCATION=~/git/acer-wmi-battery
if [ "$1" == "enable" ]; then
sudo insmod "$PROJECT_LOCATION/acer-wmi-battery.ko" enable_health_mode=1
echo "Battery health mode enabled"
elif [ "$1" == "disable" ]; then
sudo insmod "$PROJECT_LOCATION/acer-wmi-battery.ko" enable_health_mode=0
echo "Battery health mode disabled"
else
echo "Please either state 'enable' or 'disable'"
fi
'';
}