mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
15 lines
418 B
Nix
15 lines
418 B
Nix
{ config, lib, ... }:
|
|
let
|
|
user = config.users.users.actual.name;
|
|
in
|
|
{
|
|
options.custom.services.actualbudget.backups.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.custom.services.actualbudget.backups.enable {
|
|
custom.services.resticBackups.actual = {
|
|
inherit user;
|
|
dependentService = "actual.service";
|
|
extraConfig.paths = [ config.services.actual.settings.dataDir ];
|
|
};
|
|
};
|
|
}
|