Replace some uses of lib.mapAttrsToList

This commit is contained in:
SebastianStork 2025-10-06 21:43:18 +02:00
parent d5f3296bf0
commit be8712c85a
4 changed files with 12 additions and 8 deletions

View file

@ -43,7 +43,7 @@ in
};
systemd.tmpfiles.rules =
resticBackups |> lib.mapAttrsToList (name: _: "d /var/cache/restic-backups-${name} 700 - - -");
resticBackups |> lib.attrNames |> lib.map (name: "d /var/cache/restic-backups-${name} 700 - - -");
services.restic.backups =
resticBackups