summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/stats/telegraf
diff options
context:
space:
mode:
Diffstat (limited to 'makefu/2configs/stats/telegraf')
-rw-r--r--makefu/2configs/stats/telegraf/airsensor.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/makefu/2configs/stats/telegraf/airsensor.nix b/makefu/2configs/stats/telegraf/airsensor.nix
index c0c64b238..09d23e7d4 100644
--- a/makefu/2configs/stats/telegraf/airsensor.nix
+++ b/makefu/2configs/stats/telegraf/airsensor.nix
@@ -1,6 +1,10 @@
{ pkgs, ...}:
{
+ services.udev.extraRules = ''
+ SUBSYSTEMS=="usb", ATTRS{product}=="iAQ Stick", GROUP="input"
+ '';
+ users.users.telegraf.extraGroups = [ "input" ];
services.telegraf.extraConfig.inputs.exec = [
{
commands = [ "${pkgs.airsensor-py}/bin/airsensor-py"];