2025-01-12 08:56:20 +03:00
|
|
|
{ lib, config, ... }:
|
|
|
|
let
|
|
|
|
purpose = config.module.purpose;
|
|
|
|
in
|
2024-11-16 04:43:59 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
options.module.powersave = {
|
|
|
|
enable = lib.mkEnableOption "the powersave";
|
2025-01-12 08:56:20 +03:00
|
|
|
laptop = lib.mkOption {
|
|
|
|
default = purpose.laptop;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-12-18 09:40:11 +03:00
|
|
|
cpu.boost = {
|
|
|
|
disableCmd = lib.mkOption {
|
|
|
|
default = null;
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
enableCmd = lib.mkOption {
|
|
|
|
default = null;
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
controlFile = lib.mkOption {
|
|
|
|
default = null;
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-11-16 04:43:59 +03:00
|
|
|
}
|