fix(waybar): bad thermalZone variable type
This commit is contained in:
parent
710e8f6395
commit
01119f632a
2 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ in
|
||||||
cpuThermal = {
|
cpuThermal = {
|
||||||
|
|
||||||
thermalZone = mkOption {
|
thermalZone = mkOption {
|
||||||
type = types.int or null;
|
type = types.nullOr types.int;
|
||||||
default = null;
|
default = null;
|
||||||
description = "CPU thermal hwmon thermal Zone";
|
description = "CPU thermal hwmon thermal Zone";
|
||||||
};
|
};
|
||||||
|
|
|
@ -157,8 +157,8 @@ in
|
||||||
"temperature" = {
|
"temperature" = {
|
||||||
"critical-threshold" = 80;
|
"critical-threshold" = 80;
|
||||||
"format" = " {temperatureC}°C ";
|
"format" = " {temperatureC}°C ";
|
||||||
"thermal-zone" = mkIf ( cfg.waybar.cpuThermal.thermalZone != "" )
|
"thermal-zone" = mkIf ( cfg.waybar.cpuThermal.thermalZone != null )
|
||||||
"${cfg.waybar.cpuThermal.thermalZone}";
|
cfg.waybar.cpuThermal.thermalZone;
|
||||||
"hwmon-path-abs" = mkIf ( cfg.waybar.cpuThermal.hwmonPathAbs != "" )
|
"hwmon-path-abs" = mkIf ( cfg.waybar.cpuThermal.hwmonPathAbs != "" )
|
||||||
"${cfg.waybar.cpuThermal.hwmonPathAbs}";
|
"${cfg.waybar.cpuThermal.hwmonPathAbs}";
|
||||||
"input-filename" = mkIf ( cfg.waybar.cpuThermal.inputFilename != "" )
|
"input-filename" = mkIf ( cfg.waybar.cpuThermal.inputFilename != "" )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue