feat: update btrbk configs

This commit is contained in:
Ryan Yin
2024-07-30 11:41:38 +08:00
parent e2457e80aa
commit 0620f199b2
2 changed files with 7 additions and 1 deletions

View File

@@ -18,6 +18,12 @@
"${toString modulesPath}/profiles/qemu-guest.nix"
];
# backup only once a week inside all virtual machines
services.btrbk.instances.btrbk = {
onCalendar = lib.mkForce "Wed *-*-* 5:25:20";
settings.snapshot_preserve = lib.mkForce "7d";
};
config = {
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";