1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-19 08:19:48 +01:00
home-manager/tests/modules/services/borgmatic/basic-configuration.nix

23 lines
465 B
Nix
Raw Normal View History

2022-09-25 19:27:04 +02:00
{ config, pkgs, ... }:
{
config = {
services.borgmatic = {
enable = true;
frequency = "weekly";
};
test.stubs.borgmatic = { };
nmt.script = ''
assertFileContent \
$(normalizeStorePaths home-files/.config/systemd/user/borgmatic.service) \
${./basic-configuration.service}
assertFileContent \
home-files/.config/systemd/user/borgmatic.timer \
${./basic-configuration.timer}
'';
};
}