From 906cc1981e537fdb90209b0c8ef1b1a9402c59a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Fri, 15 Apr 2022 01:17:38 +0200 Subject: [PATCH] fix(tuna): nix types --- systems/zaatar/tuna.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/systems/zaatar/tuna.nix b/systems/zaatar/tuna.nix index f5b77af..ed88d25 100644 --- a/systems/zaatar/tuna.nix +++ b/systems/zaatar/tuna.nix @@ -74,8 +74,8 @@ in { systemd.tmpfiles.rules = let tags = lib.lists.unique (lib.concatMap ({tags ? [], ...}: tags) streams); - tagStreams = tag: map (lib.getAttr "stream") (lib.filter ({tags ? [], ...}: lib.elem tag tags) streams); - makePlaylist = name: urls: pkgs.writeText "${name}.m3u" (lib.concatStringsSep "\n" urls); + tagStreams = tag: lib.filter ({tags ? [], ...}: lib.elem tag tags) streams; + makePlaylist = name: streams: pkgs.writeText "${name}.m3u" (lib.concatMapStringsSep "\n" (lib.getAttr "stream") streams); in map (tag: tmpfilesConfig { @@ -87,7 +87,7 @@ in { argument = makePlaylist tag (tagStreams tag); }) tags - + [ + ++ [ (tmpfilesConfig { type = "L+"; mode = "0644";