aboutsummaryrefslogtreecommitdiff
path: root/modules/newsboat.home
diff options
context:
space:
mode:
Diffstat (limited to 'modules/newsboat.home')
-rw-r--r--modules/newsboat.home/default.nix6
-rw-r--r--modules/newsboat.home/public-feed.nix6
2 files changed, 6 insertions, 6 deletions
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"]; }