diff options
author | makefu <github@syntax-fehler.de> | 2017-12-08 14:04:35 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-12-08 14:04:35 +0100 |
commit | e99a9ac9f113ea9d79ae3b830d8b328c9ef03e40 (patch) | |
tree | ffac171ffa78c58ed5892542250e5f23f137db65 /makefu/2configs/stats/telegraf/airsensor.nix | |
parent | 20eb8ac1e2d72920814b9f354623646824a68b6b (diff) |
ma wbob.r: enable bureautomation
Diffstat (limited to 'makefu/2configs/stats/telegraf/airsensor.nix')
-rw-r--r-- | makefu/2configs/stats/telegraf/airsensor.nix | 4 |
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"]; |