up and running again

This commit is contained in:
Matt Nish-Lapidus 2025-05-22 22:49:45 -04:00
parent 16696e66cd
commit 903488fa21
9 changed files with 76 additions and 48 deletions

View file

@ -0,0 +1,31 @@
{ config, lib, pkgs, ... }:
{
services = {
btrfs = {
autoScrub = {
enable = true;
};
};
btrbk = {
instances."home" = {
onCalendar = "hourly";
settings = {
timestamp_format = "long";
snapshot_preserve_min = "18h";
snapshot_preserve = "48h";
volume = {
"/" = {
snapshot_dir = "/.snapshots";
subvolume = "/home";
};
};
};
};
};
};
systemd.tmpfiles.rules = [
"d /.snapshots 0755 root root"
];
}