tooling improved

This commit is contained in:
Bryan Ramos 2026-03-15 11:51:06 -04:00
parent 1c0271bc2a
commit 94caab1cea
2 changed files with 9 additions and 2 deletions

View file

@ -70,11 +70,18 @@
name = "devShell";
packages = [
just
rclone
age
sops
ssh-to-age
git
git-crypt
gnupg
yubikey-manager
age-plugin-yubikey
];
};
};

View file

@ -15,7 +15,7 @@ let
set -euo pipefail
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
BACKUP_NAME="backup-$TIMESTAMP.tar.age"
BACKUP_NAME="backup-$TIMESTAMP.tar.gz.age"
TEMP_DIR=$(mktemp -d)
trap "rm -rf $TEMP_DIR" EXIT
@ -23,7 +23,7 @@ let
echo "Paths: ${concatStringsSep " " cfg.paths}"
export PATH="${pkgs.age-plugin-yubikey}/bin:$PATH"
${pkgs.gnutar}/bin/tar -C / ${excludeArgs}-cf - ${concatStringsSep " " tarPaths} | \
${pkgs.gnutar}/bin/tar -C / ${excludeArgs}-czf - ${concatStringsSep " " tarPaths} | \
${pkgs.age}/bin/age ${recipientArgs} -o "$TEMP_DIR/$BACKUP_NAME"
${pkgs.rclone}/bin/rclone --config /root/.config/rclone/rclone.conf copy "$TEMP_DIR/$BACKUP_NAME" "${cfg.destination}"