mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-20 22:41:28 +01:00
* feat(btrbk): make snapshots explicit and guarded Replace the always-on, hardcoded module with modules.btrbk options (enable/volume/subvolume/snapshotDir/target/onCalendar), and assert the btrfs top-level subvolume is mounted so a missing mount fails evaluation instead of silently failing at runtime. Store snapshots in the @snapshots subvolume (snapshot_dir=@snapshots) rather than next to the live subvolume, make the off-host target explicit and off by default, and document that local snapshots are not off-host backups. Enable the feature explicitly on idols-ai, shoukei and the three kubevirt hosts; qemu-guest now disables it through the option. Add eval tests for shoukei and ai. * feat(monitoring): alert on btrbk snapshot failure Add HostBtrbkSnapshotFailed on node_systemd_unit_state for btrbk-btrbk.service, so a broken snapshot schedule alerts instead of only surfacing in the journal.
11 lines
203 B
Nix
11 lines
203 B
Nix
{ ... }:
|
|
{
|
|
enabled = true;
|
|
hasBtrPool = true;
|
|
onCalendar = "Tue,Sat *-*-* 3:45:20";
|
|
snapshotDir = "@snapshots";
|
|
sources = [ "@persistent" ];
|
|
snapshotCreate = "always";
|
|
hasTarget = false;
|
|
}
|