From dfc1438f6eaccc219630bf66c862095df25489e6 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Thu, 9 Jan 2025 15:51:34 +0100 Subject: [PATCH] Sif: fix wabar temperature --- modules/hm/waybar.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/hm/waybar.nix b/modules/hm/waybar.nix index ac969d7..b90e04f 100644 --- a/modules/hm/waybar.nix +++ b/modules/hm/waybar.nix @@ -1,6 +1,7 @@ { pkgs, nixosConfig, ... }: with nixosConfig.nix-rice.lib; let + inherit (nixosConfig.networking) hostName; inherit (nixosConfig.nix-rice.rice) colorPalette font; alpha = 0.9; custom = palette.toRGBHex { @@ -112,7 +113,9 @@ in "critical-threshold" = 90; "format" = "{temperatureC}°C {icon}"; "format-icons" = [ "" ]; - }; + } // (if hostName == "sif" then { + "hwmon-path" = "/sys/class/hwmon/hwmon7/temp1_input"; + } else { }); "backlight" = { # "device"= "acpi_video1"; "format" = "{percent}% {icon}";