defiant: add rtl-tcp

This commit is contained in:
Felix Albrigtsen 2024-09-07 18:15:12 +02:00
parent d78cb96de1
commit 618271b191
2 changed files with 15 additions and 0 deletions

View File

@ -25,6 +25,7 @@
./services/microbin.nix ./services/microbin.nix
# ./services/minecraft.nix # ./services/minecraft.nix
./services/monitoring ./services/monitoring
./services/rtl-tcp.nix
./services/vaultwarden.nix ./services/vaultwarden.nix
]; ];

View File

@ -0,0 +1,14 @@
{ config, pkgs, lib, ... }:
let
port = 1457;
in {
hardware.rtl-sdr.enable = true;
systemd.services.rtl-tcp = {
script = "${pkgs.rtl-sdr}/bin/rtl_tcp -a 0.0.0.0 -p ${toString port} -s 2000000 -T";
serviceConfig = {
Group = "plugdev";
};
};
networking.firewall.allowedTCPPorts = [ port ];
}