nix-config/nixos/fuchsia
jasmine a276fdf53a
fix(borgbackup): prevent race conditions and improve reliability
Fixes multiple issues with borgbackup service coordination:

1. Race condition between onsite/offsite backups
   - Set Type=oneshot to ensure services wait for completion
   - Added Wants= dependency to trigger onsite when offsite runs
   - Prevents snapshot path collision at /btrfs-subvolumes

2. Network unavailability after sleep/wake
   - Added persistentTimer=true to onsite backups
   - NixOS module now auto-adds network-online.target dependencies
   - Fixes DNS resolution failures for SSH repos

3. Data loss risk from missed backups
   - Persistent timers ensure backups run on wake if missed
   - Protects work done before sleep from being unbackored

4. Duplicate onsite runs at midnight
   - Removed 15-minute stagger (00:15 -> 00:00)
   - Systemd deduplicates services in same transaction
   - Onsite now runs once, not twice

Applied to both fuchsia and viridian for consistency.
2025-10-09 11:30:00 +08:00
..
services fix(borgbackup): prevent race conditions and improve reliability 2025-10-09 11:30:00 +08:00
configuration.nix refactor 2025-06-06 18:35:13 +08:00
hardware-configuration.nix refactor 2025-09-26 18:07:05 +08:00
ssh_host_ed25519_key.pub add host pub keys 2024-01-21 21:02:53 +08:00
ssh_host_rsa_key.pub add host pub keys 2024-01-21 21:02:53 +08:00