Simple btrbk config

This commit is contained in:
Valentin Brandl 2024-08-01 16:24:21 +02:00
parent 2bd2b5f57f
commit a0c00480f3
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9
2 changed files with 26 additions and 0 deletions

View File

@ -15,6 +15,7 @@ inputs.nixpkgs.lib.nixosSystem {
nixpkgs.overlays = [ overlay-unstable ]; nixpkgs.overlays = [ overlay-unstable ];
}) })
(import ./common.nix inputs) (import ./common.nix inputs)
(import ./morpheus/btrbk.nix inputs)
(import ./dev.nix inputs) (import ./dev.nix inputs)
(import ./entertainment.nix inputs) (import ./entertainment.nix inputs)
(import ./office.nix inputs) (import ./office.nix inputs)

View File

@ -0,0 +1,25 @@
{ ... }: {
services.btrbk = {
instances = {
home = {
settings = {
snapshot_preserve = "24h 14d 4w 12m";
snapshot_preserve_min = "latest";
/* don't auto cleanup target */
target_preserve_min = "all";
volume."/" = {
snapshot_dir = ".btrbk";
subvolume = {
home = {
snapshot_create = "always";
};
};
target = "/run/media/me/backup/morpheus";
};
};
};
};
};
}