From 57c592ac541c8837981a3dc0c2a12b3ba8a4fbe7 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 13 Sep 2024 16:43:10 +0530 Subject: Add jackett module --- modules/newsboat.home/default.nix | 6 +++--- modules/newsboat.home/public-feed.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'modules/newsboat.home') diff --git a/modules/newsboat.home/default.nix b/modules/newsboat.home/default.nix index 9e088c8..823d5c3 100644 --- a/modules/newsboat.home/default.nix +++ b/modules/newsboat.home/default.nix @@ -1,9 +1,9 @@ -{ lib, pkgs, ... }: +{ lib, pkgs, ... }@opts: let cfg = import ./config.nix; - urls = mergeFeeds [ (import ./public-feed.nix) privateFeed ]; + urls = mergeFeeds [ (import ./public-feed.nix opts) privateFeed ]; privateFeed = let feedpath = ./private-feed.nix; - in if builtins.pathExists feedpath then import feedpath else {}; + in if builtins.pathExists feedpath then import feedpath opts else {}; mergeFeeds = feeds: lib.attrsets.foldAttrs (value: acc: if lib.isList value diff --git a/modules/newsboat.home/public-feed.nix b/modules/newsboat.home/public-feed.nix index b48284c..63a0365 100644 --- a/modules/newsboat.home/public-feed.nix +++ b/modules/newsboat.home/public-feed.nix @@ -1,3 +1,4 @@ +{ ... }: let tag = t: ''tags # \"${toString t}\"''; youtube = title: id: tags: { @@ -15,7 +16,6 @@ in { { title = "#youtube"; query = tag "youtube"; } { title = "#news"; query = tag "news"; } { title = "#sci"; query = tag "sci"; } - { title = "#tv-shows"; query = tag "tv-shows"; } ]; visible = [ @@ -50,8 +50,8 @@ in { { url = "https://devblogs.microsoft.com/typescript/feed/"; tags = ["news"]; } { url = "https://dev.to/feed/tag/typescript"; tags = ["news"]; title = "TS - dev.to"; } - { url = "https://hnrss.org/frontpage"; tags = ["news"]; } - { url = "https://hackernoon.com/feed"; tags = ["news"]; } + # { url = "https://hnrss.org/frontpage"; tags = ["news"]; } + # { url = "https://hackernoon.com/feed"; tags = ["news"]; } { url = "https://nitter.privacydev.net/vim_tricks/rss"; tags = ["twitter" "opensource"]; } { url = "https://nixos.org/blog/announcements-rss.xml"; tags = ["opensource" "news"]; } { url = "https://www.cyberciti.com/feed/"; tags = ["opensource" "news"]; } -- cgit v1.3.1