From 4d7c112e9ab5166926613bb3a91e13d7bd15c6bb Mon Sep 17 00:00:00 2001 From: Alejandro Angulo Date: Sun, 10 Sep 2023 14:47:09 -0700 Subject: [PATCH] Made waybar thermal zone configurable --- modules/desktop/addons/waybar/default.nix | 7 +++++++ systems/x86_64-linux/gospel/default.nix | 2 ++ 2 files changed, 9 insertions(+) diff --git a/modules/desktop/addons/waybar/default.nix b/modules/desktop/addons/waybar/default.nix index e8dedce..ed7c069 100644 --- a/modules/desktop/addons/waybar/default.nix +++ b/modules/desktop/addons/waybar/default.nix @@ -10,6 +10,12 @@ with lib; let in { options.aa.desktop.addons.waybar = with types; { enable = mkEnableOption "waybar"; + + thermal-zone = mkOption { + type = int; + default = 0; + description = "The thermal zone, as in `/sys/class/thermal/`."; + }; }; config = mkIf cfg.enable { @@ -74,6 +80,7 @@ in { critical-threshold = 80; format = "{icon}{temperatureC}°C"; format-icons = [" " " " " "]; + thermal-zone = cfg.thermal-zone; }; cpu = { diff --git a/systems/x86_64-linux/gospel/default.nix b/systems/x86_64-linux/gospel/default.nix index 6c8b738..9db4025 100644 --- a/systems/x86_64-linux/gospel/default.nix +++ b/systems/x86_64-linux/gospel/default.nix @@ -17,6 +17,8 @@ workstation.enable = true; }; + desktop.addons.waybar.thermal-zone = 1; + suites.gaming.enable = true; apps.yubikey.enable = true;