{ 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; }; }