mirror of
https://git.sr.ht/~neverness/ultima
synced 2025-01-06 12:33:52 +00:00
15 lines
283 B
Nix
15 lines
283 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;
|
|
};
|
|
}
|
|
|