nixos-config/machines/fuuko/services/co2_exporter.nix
Simon Bruder 4a182ff522
fuuko: Make co2 exporter more reliable
This also “fixes” a typo in the variable name.
2023-06-28 12:53:29 +02:00

14 lines
387 B
Nix

{ config, ... }:
{
services.co2_exporter = {
enable = true;
listenAddress = "${config.sbruder.wireguard.home.address}:9672"; # uses port numer of unrelated co2 exporter to avoid 8080
device = "/dev/airco2ntrol";
};
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a052", SYMLINK+="airco2ntrol"
'';
}