From 71a9f3858e42856ef81ad92553a7732811186733 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 17 Jan 2022 00:19:59 +0100 Subject: attempting home-manager config with flakes --- home/newsboat-lib.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 home/newsboat-lib.nix (limited to 'home/newsboat-lib.nix') diff --git a/home/newsboat-lib.nix b/home/newsboat-lib.nix new file mode 100644 index 0000000..1344a9b --- /dev/null +++ b/home/newsboat-lib.nix @@ -0,0 +1,21 @@ + +rec { + tags = tags: url: { + tags = tags; + inherit url; + }; + btag = url: t: tags [ t "blog" ] url; + btags = url: ts: tags (ts ++ [ "blog" ]) url; + + ntag = url: t: tags [ t "news" ] url; + jtag = url: t: tags [ t "journal" ] url; + + vtag = url: t: tags [ t "video" ] url; + ytag = channel: tag: vtag ("https://www.youtube.com/feeds/videos.xml?channel_id=${channel}") tag; + blender = channel: vtag "https://video.blender.org/feeds/videos.xml?videoChannelId=${toString channel}" "blender"; + + podcast = url: tags [ "podcast" ] url; + music = url: tags [ "music" ] url; + + fr = "français"; +} -- cgit v1.2.3