mirror of
https://github.com/nix-community/home-manager
synced 2024-12-19 00:09:48 +01:00
27 lines
563 B
Nix
27 lines
563 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
|
||
|
backups = config.programs.borgmatic.backups;
|
||
|
|
||
|
in {
|
||
|
programs.borgmatic = {
|
||
|
enable = true;
|
||
|
backups = {
|
||
|
main = {
|
||
|
location = {
|
||
|
sourceDirectories = [ "/my-stuff-to-backup" ];
|
||
|
patterns = [ "R /" "+ my-stuff-to-backup" ];
|
||
|
repositories = [ "/mnt/disk1" ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
test.stubs.borgmatic = { };
|
||
|
|
||
|
test.asserts.assertions.expected = [''
|
||
|
Borgmatic backup configuration "main" cannot specify both 'location.sourceDirectories' and 'location.patterns'.
|
||
|
''];
|
||
|
}
|