mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Remove all uses of with
I decided once again that I don't like `with`
This commit is contained in:
parent
e72397e3e1
commit
72d4580779
4 changed files with 25 additions and 18 deletions
|
|
@ -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 ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue