From 4161f8aee8c750fb7b0c3605f257877d9e9c42ae Mon Sep 17 00:00:00 2001 From: pasqui23 Date: Sat, 20 Nov 2021 22:26:52 +0000 Subject: [PATCH] Update asus/battery.nix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jörg Thalheim --- asus/battery.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asus/battery.nix b/asus/battery.nix index c2a275b..e9bb254 100644 --- a/asus/battery.nix +++ b/asus/battery.nix @@ -7,7 +7,7 @@ let in { - options.hardware.asus.chargeUpto = lib.mkOption { + options.hardware.asus.battery.chargeUpto = lib.mkOption { description = "Maximum level of charge for your battery, as a percentage."; default = 100; type = lib.types.int; @@ -15,7 +15,7 @@ in config = { environment.systemPackages = [ p ]; systemd.tmpfiles.rules = [ - "w /sys/class/power_supply/BAT0/charge_control_end_threshold - - - - ${toString cfg.chargeUpto}" + "w /sys/class/power_supply/BAT0/charge_control_end_threshold - - - - ${toString cfg.battery.chargeUpto}" ]; }; }