1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +01:00
home-manager/tests/modules/programs/borgmatic/neither-sourcedirectories-nor-patterns.nix

19 lines
408 B
Nix
Raw Normal View History

{ 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'.
''];
}