nixos-config/machines/shinobu/services/co2_exporter.nix

14 lines
387 B
Nix
Raw Normal View History

2022-11-03 16:40:05 +01:00
{ 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";
2022-11-03 16:40:05 +01:00
};
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a052", SYMLINK+="airco2ntrol"
'';
2022-11-03 16:40:05 +01:00
}