mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
23 lines
498 B
Nix
23 lines
498 B
Nix
{
|
|
programs.borgmatic = {
|
|
enable = true;
|
|
backups = {
|
|
main = {
|
|
location = {
|
|
sourceDirectories = [ "/my-stuff-to-backup" ];
|
|
patterns = [
|
|
"R /"
|
|
"+ my-stuff-to-backup"
|
|
];
|
|
repositories = [ "/mnt/disk1" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
test.asserts.assertions.expected = [
|
|
''
|
|
Borgmatic backup configuration "main" cannot specify both 'location.sourceDirectories' and 'location.patterns'.
|
|
''
|
|
];
|
|
}
|