summaryrefslogtreecommitdiff
path: root/home/newsboat-lib.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/newsboat-lib.nix')
-rw-r--r--home/newsboat-lib.nix21
1 files changed, 21 insertions, 0 deletions
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";
+}