mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 18:09:18 -05:00
19 lines
338 B
Nix
19 lines
338 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
systemConfig.power-profiles-daemon.enable =
|
|
lib.mkEnableOption "Enables power-profiles-daemon.";
|
|
};
|
|
|
|
config = lib.mkIf config.systemConfig.power-profiles-daemon.enable {
|
|
services = {
|
|
power-profiles-daemon.enable = true;
|
|
upower.enable = true;
|
|
};
|
|
};
|
|
}
|