mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
25 lines
486 B
Nix
25 lines
486 B
Nix
|
import ./make-test-python.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")
|
||
|
'';
|
||
|
})
|