Made waybar thermal zone configurable

This commit is contained in:
Alejandro Angulo 2023-09-10 14:47:09 -07:00
parent 231d777fa7
commit 4d7c112e9a
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 9 additions and 0 deletions

View file

@ -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 = {

View file

@ -17,6 +17,8 @@
workstation.enable = true;
};
desktop.addons.waybar.thermal-zone = 1;
suites.gaming.enable = true;
apps.yubikey.enable = true;