ahuston-0 c20fc52f97
All checks were successful
Check flake.lock / Check health of `flake.lock` (pull_request) Successful in 9s
Check Nix formatting / Perform Nix format checks (pull_request) Successful in 2m33s
Check Nix flake / Perform Nix flake checks (pull_request) Successful in 7m11s
re-enable attic sync
2025-03-29 16:36:10 -04:00

11 lines
259 B
Bash

#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#findutils nixpkgs#attic-client --command bash
sync_directories=(
/ZFS/ZFS-primary/hydra
)
for dir in "${sync_directories[@]}"; do
find "$dir" -regex ".*\.drv$" -exec attic push nix-cache '{}' \;
done