mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-29 01:32:37 +01:00
24 lines
1.0 KiB
Nix
24 lines
1.0 KiB
Nix
{ ... }:
|
|
{
|
|
# TuneD - Tuning Profile Delivery Mechanism for Linux
|
|
# A modern replacement for PPD(power-profiles-daemon), and the only power manager
|
|
# here: nixpkgs' tuned module already disables power-profiles-daemon and fails
|
|
# the build if TLP, auto-cpufreq or system76-power is enabled as well.
|
|
services.tuned = {
|
|
enable = true;
|
|
settings.dynamic_tuning = true;
|
|
|
|
# Hosts pin their profile with `services.tuned.recommend` (an empty rule
|
|
# matches any host): TuneD reads /etc/tuned/recommend.conf in its automatic
|
|
# profile mode on every boot. `ppdSettings.main.default` looks like it does
|
|
# the same, but never wins -- tuned-ppd restores the base profile it saved in
|
|
# /etc/tuned/ppd_base_profile, or TuneD's own recommendation, first. Nothing
|
|
# here uses the PPD D-Bus API, so tuned-ppd stays off instead of overwriting
|
|
# the pinned profile at startup.
|
|
ppdSupport = false;
|
|
};
|
|
|
|
# Battery/AC state, used by the desktops; tuned-ppd was the other consumer.
|
|
services.upower.enable = true;
|
|
}
|