From fe488faef3f094afc79fc6546ee494c46896cb04 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Wed, 12 Jul 2023 12:49:40 +0100 Subject: [PATCH] Polybar: better temperature --- hm_modules/polybar.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hm_modules/polybar.nix b/hm_modules/polybar.nix index 6f76c65..16c2f18 100644 --- a/hm_modules/polybar.nix +++ b/hm_modules/polybar.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ nixosConfig, config, pkgs, lib, ... }: with lib; let inherit (pkgs.rice) colorPalette opacity; @@ -280,7 +280,7 @@ in warn = "%temperature-c%"; }; ramp.text = [ "" "" "" "" "" ]; - thermal.zone = "0"; + thermal.zone = if nixosConfig.networking.hostName == "odin" then 8 else 0; type = "internal/temperature"; warn.temperature = "90"; };