Files
nix-config-ryan4yin/modules/nixos/desktop/power.nix
2026-01-03 20:16:37 +08:00

18 lines
663 B
Nix

{ ... }:
{
# TuneD - Tuning Profile Delivery Mechanism for Linux
# A modern replacement for PPD(power-profiles-daemon)
services.tuned = {
enable = true;
settings.dynamic_tuning = true;
ppdSupport = true; # translation of power-profiles-daemon API calls to TuneD
ppdSettings.main.default = "balanced"; # balanced / performance / power-saver
};
# DBus service that provides power management support to applications
# Required by `tuned-ppd` for handling power supply changes
services.upower.enable = true;
services.power-profiles-daemon.enable = false; # conflicts with tuned
services.tlp.enable = false; # conflicts with tuned
}