mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-07 22:03:51 +00:00
26 lines
317 B
Nix
26 lines
317 B
Nix
{
|
|
x,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with x;
|
|
let
|
|
cfg = config.module.misc.power;
|
|
in
|
|
{
|
|
options = {
|
|
module.misc.power = {
|
|
enable = mkBool;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
powerManagement = True // {
|
|
powertop = True;
|
|
}; # POWER OPTIMIZATION
|
|
services.upower = True;
|
|
};
|
|
}
|