2024-08-09 18:24:24 +00:00
|
|
|
{ pkgs, ... }:
|
2023-06-14 19:55:35 +00:00
|
|
|
|
|
|
|
{
|
2024-03-21 20:23:04 +00:00
|
|
|
hardware.rtl-sdr.enable = true;
|
|
|
|
|
2023-06-14 19:55:35 +00:00
|
|
|
systemd.services.rtl_433 = {
|
|
|
|
description = "rtl_433 service";
|
|
|
|
after = [ "mosquitto.service" ];
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "exec";
|
2024-08-09 18:24:24 +00:00
|
|
|
ExecStart = "${pkgs.rtl_433}/bin/rtl_433 -f868.3M -Yclassic -Mtime:utc -R78 -Fmqtt://10.0.0.5:1883,user=rtl,pass=didYouFindThis,retain=0,events=rtl433";
|
2023-06-14 19:55:35 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|