Sif: fix wabar temperature

This commit is contained in:
Filippo Berto 2025-01-09 15:51:34 +01:00
parent 20ffa62f4a
commit dfc1438f6e
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -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}";