diff --git a/modules/home-manager/desktop/sway/default.nix b/modules/home-manager/desktop/sway/default.nix index d8fa2ff..84a6a88 100644 --- a/modules/home-manager/desktop/sway/default.nix +++ b/modules/home-manager/desktop/sway/default.nix @@ -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"; }; diff --git a/modules/home-manager/desktop/sway/includes/waybar.nix b/modules/home-manager/desktop/sway/includes/waybar.nix index 3f74082..0c9bc96 100644 --- a/modules/home-manager/desktop/sway/includes/waybar.nix +++ b/modules/home-manager/desktop/sway/includes/waybar.nix @@ -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 != "" )