nixcfg/nixosModules/system/power-profiles-daemon/default.nix

19 lines
348 B
Nix

{
pkgs,
lib,
config,
...
}: {
options = {
alyraffauf.system.power-profiles-daemon.enable =
lib.mkEnableOption "Enables power-profiles-daemon.";
};
config = lib.mkIf config.alyraffauf.system.power-profiles-daemon.enable {
services = {
power-profiles-daemon.enable = true;
upower.enable = true;
};
};
}