mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-22 04:07:28 +01:00
defiant: add rtl-tcp
This commit is contained in:
parent
d78cb96de1
commit
618271b191
@ -25,6 +25,7 @@
|
||||
./services/microbin.nix
|
||||
# ./services/minecraft.nix
|
||||
./services/monitoring
|
||||
./services/rtl-tcp.nix
|
||||
./services/vaultwarden.nix
|
||||
];
|
||||
|
||||
|
14
hosts/defiant/services/rtl-tcp.nix
Normal file
14
hosts/defiant/services/rtl-tcp.nix
Normal 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 ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user