Serenity/home/scripts/zethra/send-to-cache

11 lines
206 B
Bash
Executable file

#!/bin/sh
if [ -z "$1" ]; then
REMOTE='root@noraa.gay'
else
REMOTE="$1"
fi
nix build .
nix store sign -k /etc/nixos/secrets/cache-priv-key.pem ./result/
nix copy --to "ssh-ng://$REMOTE" ./result/