aboutsummaryrefslogtreecommitdiff
path: root/modules/newsboat.home/public-feed.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-09-10 17:59:56 +0530
committerAkshay Nair <phenax5@gmail.com>2024-09-10 17:59:56 +0530
commitc4e395ccaaac33b1898d447b09377b8e3fd9cfa3 (patch)
treeeb94e9338f27217d2533efe494297a5066df92d3 /modules/newsboat.home/public-feed.nix
parent3560e22fbf28f1bdf11a573421c37c15cbeabb30 (diff)
downloadnixos-config-c4e395ccaaac33b1898d447b09377b8e3fd9cfa3.tar.gz
nixos-config-c4e395ccaaac33b1898d447b09377b8e3fd9cfa3.zip
Refactor newsboat config to nix
Diffstat (limited to 'modules/newsboat.home/public-feed.nix')
-rw-r--r--modules/newsboat.home/public-feed.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/modules/newsboat.home/public-feed.nix b/modules/newsboat.home/public-feed.nix
new file mode 100644
index 0000000..09ea6a7
--- /dev/null
+++ b/modules/newsboat.home/public-feed.nix
@@ -0,0 +1,59 @@
+let
+ tag = t: ''tags # \"${toString t}\"'';
+ youtube = title: id: tags:
+ { title = "[yt] ${title} youtube"; url = "https://www.youtube.com/feeds/videos.xml?channel_id=${id}"; tags = ["youtube"] ++ tags; };
+in {
+ queries = {
+ "dev tag" = tag "dev";
+ "news tag" = tag "news";
+ "opensource tag" = tag "opensource";
+ "youtube tag" = tag "youtube";
+ "funny tag" = tag "funny";
+ "science tag" = tag "sci";
+ };
+
+ visible = [
+ { url = "https://mshibanami.github.io/GitHubTrendingRSS/weekly/all.xml"; tags = ["latest"]; }
+ { url = "https://dotfyle.com/this-week-in-neovim/rss.xml"; tags = ["opensource" "latest"]; }
+ { url = "https://www.reddit.com/r/neovim.rss"; tags = ["reddit"]; title = "r/neovim"; }
+ ];
+
+ hidden = [
+ { url = "https://www.nasa.gov/feeds/iotd-feed"; tags = ["sci"]; }
+ { url = "https://www.nasa.gov/news-release/feed/"; tags = ["sci"]; }
+ { url = "https://www.nature.com/nature.rss"; tags = ["sci"]; }
+ { url = "https://what-if.xkcd.com/feed.atom"; tags = ["sci"]; }
+ { url = "https://overreacted.io/rss.xml"; tags = ["dev"]; }
+
+ { url = "https://overreacted.io/rss.xml"; tags = ["dev"]; }
+ { url = "https://kentcdodds.com/blog/rss.xml"; tags = ["dev"]; }
+ { url = "https://developer.chrome.com/blog/feed.xml"; tags = ["dev"]; }
+ { url = "https://programmingisterrible.com/rss"; tags = ["dev"]; }
+ { url = "https://cprss.s3.amazonaws.com/javascriptweekly.com.xml"; tags = ["dev"]; }
+ { url = "https://cprss.s3.amazonaws.com/react.statuscode.com.xml"; tags = ["dev"]; }
+ { url = "https://dev.to/feed/tag/typescript"; tags = ["dev"]; title = "TS - dev.to"; }
+ { url = "https://dev.to/feed/tag/haskell"; tags = ["dev"]; title = "Haskell - dev.to"; }
+ { url = "https://nitter.privacydev.net/vim_tricks/rss"; tags = ["twitter" "dev" "opensource"]; }
+
+ { url = "https://hnrss.org/frontpage"; tags = ["news"]; }
+ { url = "https://hackernoon.com/feed"; tags = ["news"]; }
+ { url = "https://nixos.org/blog/announcements-rss.xml"; tags = ["opensource" "news"]; }
+ { url = "https://www.reddit.com/r/opensource.rss"; tags = ["reddit" "opensource"]; title = "r/opensource"; }
+ { url = "https://www.cyberciti.com/feed/"; tags = ["opensource" "news"]; }
+ { url = "https://itsfoss.com/rss/"; tags = ["opensource" "news"]; }
+
+ { url = "https://xkcd.com/rss.xml"; tags = ["funny"]; }
+ { url = "http://phdcomics.com/gradfeed.php"; tags = ["funny"]; }
+ { url = "https://www.reddit.com/r/ProgrammerHumor.rss"; tags = ["funny" "reddit"]; title = "r/ProgrammerHumor"; }
+ { url = "https://feeds.feedburner.com/TheDailyWtf"; tags = ["funny"]; }
+
+ # Youtube channels
+ (youtube "IamMoBo" "UCJswRv22oiUgmT1FuFeUekw" ["funny"])
+ (youtube "NaturalHabitatShorts" "UCSb_Sui6FBxVS4_ROsrU_Iw" ["funny"])
+ (youtube "InternetHistorian" "UCR1D15p_vdP3HkrH8wgjQRw" ["funny"])
+ (youtube "Incognito Mode" "UC8Q7XEy86Q7T-3kNpNjYgwA" ["funny"])
+ (youtube "Fireship" "UCsBjURrPoezykLs9EqgamOA" ["dev"])
+ (youtube "No boilerplate" "UCUMwY9iS8oMyWDYIe6_RmoA" ["dev"])
+ (youtube "TypeCraft" "UCo71RUe6DX4w-Vd47rFLXPg" ["dev"])
+ ];
+}