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;