Skip to content

Commit

Permalink
Make temperature source configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Sep 27, 2024
1 parent ce6237e commit 1801eff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions home/programs/polybar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ in
keyboard = mkEnableOption "Keyboard layout monitor" // { default = true; };
memory = mkEnableOption "Memory monitor" // { default = true; };
temperature = mkEnableOption "Temperature monitor" // { default = true; };
temperature-source = mkOption {
type = types.string;
default = "";
description = "Temperature source path";
};
volume = mkEnableOption "Volume monitor" // { default = true; };
weather = mkEnableOption "Weather monitor" // { default = true; };
};
Expand Down Expand Up @@ -274,6 +279,7 @@ in
type = "internal/temperature";
interval = 2;
thermal-zone = 0;
hwmon-path = cfg.monitors.temperature-source;
units = true;
base-temperature = 20;
warn-temperature = 65;
Expand Down
1 change: 1 addition & 0 deletions home/roles/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ in
gnome.nautilus
gnome.pomodoro
gnome.seahorse
psensor
];

services.gnome-keyring.enable = true;
Expand Down

0 comments on commit 1801eff

Please sign in to comment.