nixos/services/yt-dlp: fix values for systemd services

This commit is contained in:
Gabriel Arazas 2024-08-25 19:11:30 +08:00
parent 507cc0a693
commit e0d82441a0
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -181,7 +181,7 @@ in
serviceConfig = {
ReadWritePaths =
[ job.downloadPath ]
++ lib.mapAttrsToList (n: v: lib.optionals (v.path != null) v.path) job.metadata;
++ lib.lists.flatten (lib.mapAttrsToList (n: v: lib.optionals (v.path != null) v.path) job.metadata);
LockPersonality = true;
NoNewPrivileges = true;