mirror of
https://github.com/nix-community/home-manager
synced 2024-11-24 03:59:46 +01:00
23 lines
465 B
Nix
23 lines
465 B
Nix
|
{ 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}
|
||
|
'';
|
||
|
};
|
||
|
}
|