restic: Add dedicated paths option

This commit is contained in:
SebastianStork 2025-09-02 17:05:39 +02:00
parent 2761fc8953
commit 7e25a91691
7 changed files with 19 additions and 17 deletions

View file

@ -68,14 +68,10 @@ in
custom.services.resticBackups.hedgedoc = lib.mkIf cfg.doBackups {
conflictingService = "hedgedoc.service";
extraConfig.paths =
let
hedgedocSettings = config.services.hedgedoc.settings;
in
[
hedgedocSettings.uploadsPath
hedgedocSettings.db.storage
];
paths = with config.services.hedgedoc.settings; [
uploadsPath
db.storage
];
};
};
}