.github
.vscode
docs
hydra
keys
lib
modules
pkgs
systems
artemision
palatine-hill
attic
default.nix
sync-attic.bash
docker
haproxy
acme.nix
configuration.nix
default.nix
firewall.nix
gitea.nix
hardware-changes.nix
hardware.nix
hydra.nix
loki.nix
minio.nix
networking.nix
nextcloud.nix
postgresql.nix
samba.nix
secrets.yaml
vars.nix
zfs.nix
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
statix.toml
treefmt.toml
11 lines
263 B
Bash
11 lines
263 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 cache-nix-dot '{}' \;
|
|
done
|