Refactor backup intent into host facts and data classes #15

Open
opened 2026-07-01 16:15:55 +01:00 by nimmo · 0 comments
Owner

Goal

Implement Priority 2 from projects/host-facts-refactor-roadmap.md: separate host backup intent from backup mechanism/policy.

Acceptance Checklist

  • Introduce host facts for backup-relevant data classes.
  • Cover at least:
    • home backups
    • snapshot intent
    • server/service data paths
  • Treat /srv/services on vega as a first-class backed-up service-state path.
  • Keep retention, schedule, repo target, and encryption policy in service modules rather than in host facts.

Proposed Shape

nixosConfig.backup = {
  home.enable = true;
  snapshots.home.enable = true;
  dataPaths = [ "/srv/stacks" "/srv/services" "/mnt/storage" ];
};

Potential Consumers

  • modules/services/backrest.nix
  • modules/services/btrbk-home.nix
  • future server backup modules
## Goal Implement Priority 2 from `projects/host-facts-refactor-roadmap.md`: separate host backup intent from backup mechanism/policy. ## Acceptance Checklist - Introduce host facts for backup-relevant data classes. - Cover at least: - home backups - snapshot intent - server/service data paths - Treat `/srv/services` on `vega` as a first-class backed-up service-state path. - Keep retention, schedule, repo target, and encryption policy in service modules rather than in host facts. ## Proposed Shape ```nix nixosConfig.backup = { home.enable = true; snapshots.home.enable = true; dataPaths = [ "/srv/stacks" "/srv/services" "/mnt/storage" ]; }; ``` ## Potential Consumers - `modules/services/backrest.nix` - `modules/services/btrbk-home.nix` - future server backup modules
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#15
No description provided.