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 dde9747
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions home/programs/polybar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ 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;
description = "Temperature source path";
};
volume = mkEnableOption "Volume monitor" // { default = true; };
weather = mkEnableOption "Weather monitor" // { default = true; };
};
Expand Down Expand Up @@ -274,6 +278,7 @@ in
type = "internal/temperature";
interval = 2;
thermal-zone = 0;
hwmon-path = ${cfg.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 dde9747

Please sign in to comment.