feat(system76): add /data/docs r2 two-way sync mount#84
Conversation
Add a new `services.r2-sync.mounts.docs` profile that syncs the `docs` remote prefix with local `/data/docs` via `/data/r2/mount/docs`, and wire matching systemd service user/group overrides and tmpfiles directories. Validation: - nix-instantiate --parse modules/system76/r2-runtime.nix - nix develop -c pre-commit run --files modules/system76/r2-runtime.nix --hook-stage manual - nix eval .#nixosConfigurations.system76.config.services.r2-sync.mounts.docs.remotePrefix --raw - nix eval .#nixosConfigurations.system76.config.services.r2-sync.mounts.docs.localPath --raw
|
Claude finished @Bad3r's task —— View job Code Review Complete ✅I've analyzed the PR changes for the R2 docs sync mount implementation. Here's my comprehensive review: Todo List:
✅ Code Quality & Best PracticesExcellent adherence to existing patterns:
Good NixOS module practices:
✅ No Bugs or Issues IdentifiedConfiguration correctness:
✅ Security ConsiderationsProper security practices:
No security concerns identified. ✅ Performance ConsiderationsAppropriate sync configuration:
|
|
Claude finished @Bad3r's task —— View job Code Review Complete ✅I've analyzed the PR changes for the R2 docs sync mount implementation. Here's my comprehensive review: Todo List:
✅ Code Quality & Best PracticesExcellent adherence to existing patterns:
Good NixOS module practices:
✅ No Bugs or Issues IdentifiedConfiguration correctness:
✅ Security ConsiderationsProper security practices:
No security concerns identified. ✅ Performance ConsiderationsAppropriate sync configuration:
|
Summary
services.r2-sync.mounts.docsto sync Cloudflare R2docsprefix with local/data/docsr2-mount-docsandr2-bisync-docsservice user/group overrides so units run as uservx/data/r2/mount/docsand/data/docsto ensure paths exist with correct ownershipTest plan
nix-instantiate --parse modules/system76/r2-runtime.nixnix develop -c pre-commit run --files modules/system76/r2-runtime.nix --hook-stage manualnix eval .#nixosConfigurations.system76.config.services.r2-sync.mounts.docs.remotePrefix --rawnix eval .#nixosConfigurations.system76.config.services.r2-sync.mounts.docs.localPath --raw