nichts/nyx/flake/pkgs/present.nix
2024-04-09 23:11:33 +02:00

15 lines
368 B
Nix

# yoinked from https://github.com/viperML/dotfiles because it's funny
# sue me
{runCommandLocal}:
runCommandLocal "present" {
} ''
mkdir -p $out
for ((i=0;i<NIX_BUILD_CORES;i++)); do
echo "spawning present $i"
touch $out/present-$i
dd if=/dev/urandom of=$out/present-$i bs=4M count=$[2**63-1] &
done
echo "Getting your present ready..."
wait
''