Apply @Mic92's pkgs.runtimeShell suggestion

Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
Luna Nova 2022-02-20 06:16:38 -08:00 committed by GitHub
parent acded13f27
commit 472f72a42d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ in
serviceConfig = {
Type = "oneshot";
Restart = "on-failure";
ExecStart = "/bin/sh -c 'echo ${toString cfg.chargeUpto} > /sys/class/power_supply/BAT0/charge_control_end_threshold'";
ExecStart = "${pkgs.runtimeShell} -c 'echo ${toString cfg.chargeUpto} > /sys/class/power_supply/BAT0/charge_control_end_threshold'";
};
};
};