diff --git a/scripts/termbin/tb.nix b/scripts/termbin/tb.nix new file mode 100644 index 0000000..12f070e --- /dev/null +++ b/scripts/termbin/tb.nix @@ -0,0 +1,16 @@ +# scripts.nix +{pkgs, ...}: { + home.packages = with pkgs; [ + (writeShellApplication { + name = "termbin"; + runtimeInputs = with pkgs; [ + netcat + ]; + + text = '' + file=$1 + cat "$1" | nc termbin.com 9999 + ''; + }) + ]; +}