mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 03:23:30 +00:00
19 lines
408 B
Nix
19 lines
408 B
Nix
|
{ config, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
|
||
|
backups = config.programs.borgmatic.backups;
|
||
|
|
||
|
in {
|
||
|
programs.borgmatic = {
|
||
|
enable = true;
|
||
|
backups = { main = { location = { repositories = [ "/mnt/disk1" ]; }; }; };
|
||
|
};
|
||
|
|
||
|
test.stubs.borgmatic = { };
|
||
|
|
||
|
test.asserts.assertions.expected = [''
|
||
|
Borgmatic backup configuration "main" must specify one of 'location.sourceDirectories' or 'location.patterns'.
|
||
|
''];
|
||
|
}
|