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,7 +7,8 @@ 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 = {
home = {
settings = { settings = {
snapshot_preserve_min = "2d"; snapshot_preserve_min = "2d";
snapshot_preserve = "7d"; snapshot_preserve = "7d";
@ -16,6 +17,16 @@ with config.deviceSpecific; {
}; };
onCalendar = "daily"; onCalendar = "daily";
}; };
nix = {
settings = {
snapshot_preserve_min = "2d";
snapshot_preserve = "4d";
snapshot_dir = "/.snapshots";
subvolume = "/nix";
};
onCalendar = "daily";
};
};
services.earlyoom = { services.earlyoom = {
enable = devInfo.ram < 16; enable = devInfo.ram < 16;