2024-09-09 00:22:14 +00:00
|
|
|
{
|
2024-09-13 01:50:53 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.services.power-profiles-daemon;
|
|
|
|
in {
|
|
|
|
options.custom.services.power-profiles-daemon.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# https://gitlab.freedesktop.org/upower/power-profiles-daemon
|
|
|
|
#!! Usage is imperative
|
|
|
|
#?? powerprofilesctl set <performance|balanced|power-saver>
|
2024-10-31 00:13:07 +00:00
|
|
|
services = {
|
|
|
|
power-profiles-daemon.enable = true;
|
|
|
|
tlp.enable = false; # Conflicts with PPD
|
|
|
|
};
|
2024-09-09 00:22:14 +00:00
|
|
|
};
|
|
|
|
}
|