This commit is contained in:
Amaury JOLY
2026-03-10 18:51:49 +01:00
commit d6a66c16b8
25 changed files with 1653 additions and 0 deletions

21
modules/laptop/power.nix Normal file
View File

@@ -0,0 +1,21 @@
# Module: Power Management
# Description: CPU frequency governor and power management settings
# Services: powerManagement
{ config, lib, ... }:
{
options.custom.power = {
enable = lib.mkEnableOption "power management configuration";
cpuGovernor = lib.mkOption {
type = lib.types.str;
default = "powersave";
description = "CPU frequency governor (powersave, performance, ondemand, etc.)";
};
};
config = lib.mkIf config.custom.power.enable {
powerManagement.cpuFreqGovernor = config.custom.power.cpuGovernor;
};
}