1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 21:01:07 +01:00

feat: use pkgs.formats for everything

This commit is contained in:
2021-04-07 09:37:57 +02:00
parent 0f0b5658be
commit 4adf8fea0a
9 changed files with 83 additions and 94 deletions

View File

@@ -47,7 +47,7 @@ in
systemd.services.mpd-fm-stations =
let
stations = lib.lists.imap0 (id: {desc ? "", logo ? "https://picsum.photos/seed/${builtins.hashString "md5" stream}/300", stream, station}: { inherit id desc logo stream station; }) streams;
stationsJson = pkgs.writeText "stations.json" (builtins.toJSON stations);
stationsJson = (pkgs.formats.json {}).generate "stations.json" stations;
in {
wantedBy = [ "mpd-fm.service" ];
startAt = "hourly";