gpu applet: use configurable warm/hot thresholds from module config
This commit is contained in:
parent
42d11e7a14
commit
4256c3b86f
3 changed files with 16 additions and 3 deletions
|
|
@ -87,7 +87,6 @@ in
|
|||
"bluetooth"
|
||||
"network"
|
||||
"powerProfile"
|
||||
"gpu"
|
||||
"cpu"
|
||||
"memory"
|
||||
"idleInhibitor"
|
||||
|
|
@ -171,6 +170,18 @@ in
|
|||
description = "Brightness adjustment step (%).";
|
||||
};
|
||||
};
|
||||
gpu = moduleOpt "gpu" {
|
||||
warm = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 70;
|
||||
description = "GPU temperature threshold for warm state (°C).";
|
||||
};
|
||||
hot = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
default = 85;
|
||||
description = "GPU temperature threshold for hot state (°C).";
|
||||
};
|
||||
};
|
||||
temperature = moduleOpt "temperature" {
|
||||
warm = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue