From 4593bb129da2a8b8d3ddf6bb9352f0ef0dc562fd Mon Sep 17 00:00:00 2001 From: koral Date: Wed, 1 Apr 2026 20:35:42 +0200 Subject: [PATCH] fix(raspberry-pi): Explicitly convert integers to strings --- raspberry-pi/4/poe-hat.nix | 16 ++++++++-------- raspberry-pi/4/poe-plus-hat.nix | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/raspberry-pi/4/poe-hat.nix b/raspberry-pi/4/poe-hat.nix index 0322994b..ac2381e1 100644 --- a/raspberry-pi/4/poe-hat.nix +++ b/raspberry-pi/4/poe-hat.nix @@ -102,23 +102,23 @@ in target = <&thermal_trips>; __overlay__ { trip0: trip0 { - temperature = <${cfg.fan.temperature0}>; - hysteresis = <${cfg.fan.hysteresis0}>; + temperature = <${toString cfg.fan.temperature0}>; + hysteresis = <${toString cfg.fan.hysteresis0}>; type = "active"; }; trip1: trip1 { - temperature = <${cfg.fan.temperature1}>; - hysteresis = <${cfg.fan.hysteresis1}>; + temperature = <${toString cfg.fan.temperature1}>; + hysteresis = <${toString cfg.fan.hysteresis1}>; type = "active"; }; trip2: trip2 { - temperature = <${cfg.fan.temperature2}>; - hysteresis = <${cfg.fan.hysteresis2}>; + temperature = <${toString cfg.fan.temperature2}>; + hysteresis = <${toString cfg.fan.hysteresis2}>; type = "active"; }; trip3: trip3 { - temperature = <${cfg.fan.temperature3}>; - hysteresis = <${cfg.fan.hysteresis3}>; + temperature = <${toString cfg.fan.temperature3}>; + hysteresis = <${toString cfg.fan.hysteresis3}>; type = "active"; }; }; diff --git a/raspberry-pi/4/poe-plus-hat.nix b/raspberry-pi/4/poe-plus-hat.nix index 805b0557..59f91608 100644 --- a/raspberry-pi/4/poe-plus-hat.nix +++ b/raspberry-pi/4/poe-plus-hat.nix @@ -104,23 +104,23 @@ in target = <&thermal_trips>; __overlay__ { trip0: trip0 { - temperature = <${cfg.fan.temperature0}>; - hysteresis = <${cfg.fan.hysteresis0}>; + temperature = <${toString cfg.fan.temperature0}>; + hysteresis = <${toString cfg.fan.hysteresis0}>; type = "active"; }; trip1: trip1 { - temperature = <${cfg.fan.temperature1}>; - hysteresis = <${cfg.fan.hysteresis1}>; + temperature = <${toString cfg.fan.temperature1}>; + hysteresis = <${toString cfg.fan.hysteresis1}>; type = "active"; }; trip2: trip2 { - temperature = <${cfg.fan.temperature2}>; - hysteresis = <${cfg.fan.hysteresis2}>; + temperature = <${toString cfg.fan.temperature2}>; + hysteresis = <${toString cfg.fan.hysteresis2}>; type = "active"; }; trip3: trip3 { - temperature = <${cfg.fan.temperature3}>; - hysteresis = <${cfg.fan.hysteresis3}>; + temperature = <${toString cfg.fan.temperature3}>; + hysteresis = <${toString cfg.fan.hysteresis3}>; type = "active"; }; };