1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-27 12:09:45 +01:00

assus/battery: rename option to match nixpkgs convention

This commit is contained in:
Jörg Thalheim 2022-02-23 10:23:56 +01:00
parent 472f72a42d
commit ca893110b3
No known key found for this signature in database

View file

@ -13,14 +13,14 @@ in
default = 100;
type = lib.types.int;
};
addChargeUptoScript = lib.mkOption {
enableChargeUptoScript = lib.mkOption {
description = "Whether to add charge-upto to environment.systemPackages. `charge-upto 75` temporarily sets the charge limit to 75%.";
default = true;
type = lib.types.bool;
};
};
config = {
environment.systemPackages = lib.mkIf cfg.addChargeUptoScript [ p ];
environment.systemPackages = lib.mkIf cfg.enableChargeUptoScript [ p ];
systemd.services.battery-charge-threshold = {
wantedBy = [ "local-fs.target" "suspend.target" ];
after = [ "local-fs.target" "suspend.target" ];