From 4d730f51f3bae52af564b91cfc4fca5e3e66ac21 Mon Sep 17 00:00:00 2001 From: Damocles Date: Wed, 15 Apr 2026 19:19:40 +0200 Subject: [PATCH] remove dead temperature.interval config option --- modules/Modules.qml | 1 - nix/hm-module.nix | 27 ++++++++++++--------------- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/modules/Modules.qml b/modules/Modules.qml index 0a2b753..eea208d 100644 --- a/modules/Modules.qml +++ b/modules/Modules.qml @@ -55,7 +55,6 @@ QtObject { }) property var temperature: ({ enable: true, - interval: 2000, warm: 80, hot: 90 }) diff --git a/nix/hm-module.nix b/nix/hm-module.nix index aa71894..eec773a 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -127,21 +127,18 @@ in description = "Brightness adjustment step (%)."; }; }; - temperature = moduleOpt "temperature" ( - (intervalOpt 2000) - // { - warm = lib.mkOption { - type = lib.types.int; - default = 80; - description = "Temperature threshold for warm state (°C)."; - }; - hot = lib.mkOption { - type = lib.types.int; - default = 90; - description = "Temperature threshold for hot state (°C)."; - }; - } - ); + temperature = moduleOpt "temperature" { + warm = lib.mkOption { + type = lib.types.int; + default = 80; + description = "Temperature threshold for warm state (°C)."; + }; + hot = lib.mkOption { + type = lib.types.int; + default = 90; + description = "Temperature threshold for hot state (°C)."; + }; + }; battery = moduleOpt "battery" { warning = lib.mkOption { type = lib.types.int;