fix(nix): renamed nixie to carbon

This commit is contained in:
Léana 江 2024-02-28 12:28:21 +01:00 committed by Léana 江
parent 9b1e69ba52
commit 053ef59444
12 changed files with 0 additions and 0 deletions

View file

@ -1,18 +0,0 @@
{pkgs, ...}: {
systemd.services.battery-charge-threshold = {
enable = true;
description = "Set the battery charge threshold";
unitConfig = {
After = "multi-user.target";
StartLimitBurst = 0;
};
serviceConfig = {
User = "root";
Group = "root";
Type = "oneshot";
Restart = "on-failure";
ExecStart = "${pkgs.bash}/bin/bash -c 'echo 70 > /sys/class/power_supply/BAT1/charge_control_start_threshold; echo 80 > /sys/class/power_supply/BAT1/charge_control_end_threshold'";
};
wantedBy = ["multi-user.target"];
};
}