mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
26 lines
490 B
Nix
26 lines
490 B
Nix
{ pkgs, ... }:
|
|
{
|
|
name = "borgmatic";
|
|
nodes.machine =
|
|
{ ... }:
|
|
{
|
|
services.borgmatic = {
|
|
enable = true;
|
|
settings = {
|
|
source_directories = [ "/home" ];
|
|
repositories = [
|
|
{
|
|
label = "local";
|
|
path = "/var/backup";
|
|
}
|
|
];
|
|
keep_daily = 7;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.succeed("borgmatic rcreate -e none")
|
|
machine.succeed("borgmatic")
|
|
'';
|
|
}
|