dotfiles/nixos/systems/altra/u2t.nix
magic_rb aff0158ef7
Reformat the whole flake using alejandra
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-03-02 22:17:03 +01:00

18 lines
398 B
Nix

{pkgs, ...}: {
systemd.services.udp2tcp = {
wantedBy = ["multi-user.target"];
after = ["network.target"];
restartIfChanged = true;
path = with pkgs; [dig.host];
script = ''
${pkgs.udp-over-tcp}/bin/tcp2udp\
--tcp-listen 127.0.0.1:6001 \
--tcp-listen "$(host redalder.org | sed -e 's/.* //'):6001" \
--udp-forward 127.0.0.1:6666
'';
};
}