mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
14 lines
391 B
Nix
14 lines
391 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.custom.services.hedgedoc.backups.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.custom.services.hedgedoc.backups.enable {
|
|
custom.services.resticBackups.hedgedoc = {
|
|
dependentService = "hedgedoc.service";
|
|
extraConfig.paths = with config.services.hedgedoc.settings; [
|
|
uploadsPath
|
|
db.storage
|
|
];
|
|
};
|
|
};
|
|
}
|