Remove all uses of with

I decided once again that I don't like `with`
This commit is contained in:
SebastianStork 2025-10-08 19:22:41 +02:00
parent e72397e3e1
commit 72d4580779
4 changed files with 25 additions and 18 deletions

View file

@ -71,10 +71,14 @@ in
custom = {
services.resticBackups.hedgedoc = lib.mkIf cfg.doBackups {
conflictingService = "hedgedoc.service";
paths = with config.services.hedgedoc.settings; [
uploadsPath
db.storage
];
paths =
let
inherit (config.services.hedgedoc) settings;
in
[
settings.uploadsPath
settings.db.storage
];
};
persist.directories = [ dataDir ];