add btrbk job for /nix

This commit is contained in:
Dmitriy Kholkin 2022-08-31 01:16:22 +03:00
parent ad2c73109a
commit 14867c3866

View File

@ -7,14 +7,25 @@ with config.deviceSpecific; {
hardware.bluetooth.enable = !isServer; hardware.bluetooth.enable = !isServer;
services.blueman.enable = !isServer; services.blueman.enable = !isServer;
services.btrbk.instances.home = { services.btrbk.instances = {
settings = { home = {
snapshot_preserve_min = "2d"; settings = {
snapshot_preserve = "7d"; snapshot_preserve_min = "2d";
snapshot_dir = "/.snapshots"; snapshot_preserve = "7d";
subvolume = "/home"; snapshot_dir = "/.snapshots";
subvolume = "/home";
};
onCalendar = "daily";
};
nix = {
settings = {
snapshot_preserve_min = "2d";
snapshot_preserve = "4d";
snapshot_dir = "/.snapshots";
subvolume = "/nix";
};
onCalendar = "daily";
}; };
onCalendar = "daily";
}; };
services.earlyoom = { services.earlyoom = {