gpu applet: use configurable warm/hot thresholds from module config

This commit is contained in:
Damocles 2026-04-24 21:17:50 +02:00
parent 42d11e7a14
commit 4256c3b86f
3 changed files with 16 additions and 3 deletions

View file

@ -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;