1 { config, lib, pkgs, ... }:
6 cfg = config.services.power-profiles-daemon;
7 package = pkgs.power-profiles-daemon;
16 services.power-profiles-daemon = {
21 description = lib.mdDoc ''
22 Whether to enable power-profiles-daemon, a DBus daemon that allows
23 changing system behavior based upon user-selected power profiles.
34 config = mkIf cfg.enable {
37 { assertion = !config.services.tlp.enable;
39 You have set services.power-profiles-daemon.enable = true;
40 which conflicts with services.tlp.enable = true;
45 environment.systemPackages = [ package ];
47 services.dbus.packages = [ package ];
49 services.udev.packages = [ package ];
51 systemd.packages = [ package ];