Files
nix-config/scripts/termbin/tb.nix

17 lines
268 B
Nix

# scripts.nix
{pkgs, ...}: {
home.packages = with pkgs; [
(writeShellApplication {
name = "termbin";
runtimeInputs = with pkgs; [
netcat
];
text = ''
file=$1
cat "$1" | nc termbin.com 9999
'';
})
];
}