1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-06 12:33:52 +00:00
ultima/modules/nixos/misc/power/default.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;
};
}