diff options
author | stuebinm | 2022-01-17 00:19:59 +0100 |
---|---|---|
committer | stuebinm | 2022-01-20 13:16:43 +0100 |
commit | 71a9f3858e42856ef81ad92553a7732811186733 (patch) | |
tree | c2fa2ba37bda94491a36fd2e0dffd37d443f7ccb /home/newsboat-lib.nix | |
parent | c48f90064724ce1d802038524f60cce7baf53e69 (diff) |
attempting home-manager config with flakes
Diffstat (limited to 'home/newsboat-lib.nix')
-rw-r--r-- | home/newsboat-lib.nix | 21 |
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"; +} |