feat: nb add battery max charge option and quick change for it
This commit is contained in:
parent
8f2a1e1357
commit
92a216c920
5 changed files with 136 additions and 73 deletions
|
|
@ -13,9 +13,10 @@ let
|
|||
sessionsFontSize = 24;
|
||||
usersFontSize = 32;
|
||||
};
|
||||
variants = ["qt5"];
|
||||
variants = [ "qt5" ];
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../sway/sway.nix
|
||||
../sway/launcher-cleanup.nix
|
||||
|
|
@ -115,7 +116,7 @@ in {
|
|||
programs.light.enable = true;
|
||||
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = false; # Save battery - enable manually when needed
|
||||
hardware.bluetooth.powerOnBoot = false; # Save battery - enable manually when needed
|
||||
hardware.bluetooth.settings = {
|
||||
General = { ControllerMode = "bredr"; };
|
||||
};
|
||||
|
|
@ -162,7 +163,7 @@ in {
|
|||
USB_EXCLUDE_PHONE = 0;
|
||||
USB_EXCLUDE_PRINTER = 1;
|
||||
USB_EXCLUDE_WWAN = 0;
|
||||
USB_EXCLUDE_INPUT = 1; # Exclude keyboard/touchpad to prevent suspend issues
|
||||
USB_EXCLUDE_INPUT = 1; # Exclude keyboard/touchpad to prevent suspend issues
|
||||
|
||||
# Audio power saving
|
||||
SOUND_POWER_SAVE_ON_AC = 0;
|
||||
|
|
@ -173,9 +174,6 @@ in {
|
|||
DISK_IDLE_SECS_ON_AC = 0;
|
||||
DISK_IDLE_SECS_ON_BAT = 2;
|
||||
|
||||
# Battery charge thresholds (Framework 13 recommendation)
|
||||
START_CHARGE_THRESH_BAT0 = 60;
|
||||
STOP_CHARGE_THRESH_BAT0 = 80;
|
||||
};
|
||||
|
||||
boot.plymouth = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue