fix(waybar): bad thermalZone variable type

This commit is contained in:
Yorick Barbanneau 2025-09-19 20:52:53 +02:00
parent 710e8f6395
commit 01119f632a
Signed by: ephase
GPG key ID: 4447A19BBEDB8DBA
2 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ in
cpuThermal = {
thermalZone = mkOption {
type = types.int or null;
type = types.nullOr types.int;
default = null;
description = "CPU thermal hwmon thermal Zone";
};

View file

@ -157,8 +157,8 @@ in
"temperature" = {
"critical-threshold" = 80;
"format" = " {temperatureC}°C ";
"thermal-zone" = mkIf ( cfg.waybar.cpuThermal.thermalZone != "" )
"${cfg.waybar.cpuThermal.thermalZone}";
"thermal-zone" = mkIf ( cfg.waybar.cpuThermal.thermalZone != null )
cfg.waybar.cpuThermal.thermalZone;
"hwmon-path-abs" = mkIf ( cfg.waybar.cpuThermal.hwmonPathAbs != "" )
"${cfg.waybar.cpuThermal.hwmonPathAbs}";
"input-filename" = mkIf ( cfg.waybar.cpuThermal.inputFilename != "" )