mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 22:09:17 -05:00
19 lines
348 B
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;
|
|
};
|
|
};
|
|
}
|