System snapshots and window manager configs
This commit is contained in:
18
hosts/desktop/snapshot.nix
Normal file
18
hosts/desktop/snapshot.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ config, pkgs, inputs, ... }:
|
||||
{
|
||||
services.btrbk = {
|
||||
instances."local_snapshots" = {
|
||||
onCalendar = "hourly";
|
||||
settings = {
|
||||
snapshot_preserve = "14d 8w 120m";
|
||||
snapshot_preserve_min = "7d";
|
||||
volume = {
|
||||
"/media/2tb" = {
|
||||
snapshot_dir = "/media/2tb/@snapshots";
|
||||
subvolume = "@home";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user