Skip to content

Commit

Permalink
Battery life improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
  • Loading branch information
henrirosten committed Aug 11, 2024
1 parent 199a4f7 commit eba6cd2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion nix-modules/laptop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,25 @@
};
};

# battery life improvements
# Battery life improvements

powerManagement.enable = true;
# powerManagement.powertop.enable = true;

# conflicts with services.power-profiles-daemon.enable enabled by Gnome:
# services.tlp.enable = true;

# https://www.reddit.com/r/linux/comments/1em8biv/psa_pipewire_has_been_halving_your_battery_life/
services.pipewire = {
wireplumber.extraConfig."10-disable-camera.conf" = {
"wireplumber.profiles".main."monitor.libcamera" = "disabled";
};
};

hardware = {
bluetooth = {
enable = true;
powerOnBoot = false;
};
};
}

0 comments on commit eba6cd2

Please # to comment.