mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 18:19:09 +00:00
Like the previous replacement module, we cannot test it properly since it relies on `modulesPath` specialArg which home-manager initialize and nmt doesn't.
19 lines
500 B
Nix
19 lines
500 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
programs.borgmatic.enable = true;
|
|
|
|
programs.borgmatic.backups.personal = {
|
|
settings.hello = "WORLD";
|
|
initService.enable = true;
|
|
};
|
|
|
|
test.stubs.borgmatic = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/borgmatic.d/personal.yaml
|
|
assertFileExists home-files/.config/systemd/user/borgmatic-job-borgmatic-config-personal.service
|
|
assertFileExists home-files/.config/systemd/user/borgmatic-job-borgmatic-config-personal.timer
|
|
'';
|
|
}
|