mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 23:11:55 -05:00
15 lines
331 B
Nix
15 lines
331 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;
|
|
};
|
|
};
|
|
}
|