Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
24 lines
486 B
Nix
24 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")
|
|
'';
|
|
})
|