1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-21 10:53:51 +00:00
ultima/modules/nixos/misc/power/default.nix
2024-12-09 10:15:55 +09:00

15 lines
289 B
Nix

{ x, lib, config, True, ... }:
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;
};
}