From 35669d2454e0ad0283fe10c651531d1fde520fb8 Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Fri, 5 Dec 2025 18:43:42 -0800 Subject: package randpass --- packages/randpass.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 packages/randpass.nix (limited to 'packages') diff --git a/packages/randpass.nix b/packages/randpass.nix new file mode 100644 index 0000000..ef8fe91 --- /dev/null +++ b/packages/randpass.nix @@ -0,0 +1,8 @@ +# Generate mostly random string with alphanumerics +# ARGS +# $1: num of chars to output, default 14 + +{ writeShellScriptBin, ... }: + +writeShellScriptBin "randpass" + ''tr -dc '[:alnum:]'