aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2024-09-13 16:43:10 +0530
committerAkshay Nair <phenax5@gmail.com>2024-09-13 16:43:10 +0530
commit57c592ac541c8837981a3dc0c2a12b3ba8a4fbe7 (patch)
tree22040f2b1aaa94194dedb408703ac36aaafb8b0e /modules
parentce028570c53c8c45661d9fe0168920db05737c39 (diff)
downloadnixos-config-57c592ac541c8837981a3dc0c2a12b3ba8a4fbe7.tar.gz
nixos-config-57c592ac541c8837981a3dc0c2a12b3ba8a4fbe7.zip
Add jackett module
Diffstat (limited to 'modules')
-rw-r--r--modules/jackett.nix8
-rw-r--r--modules/newsboat.home/default.nix6
-rw-r--r--modules/newsboat.home/public-feed.nix6
3 files changed, 14 insertions, 6 deletions
diff --git a/modules/jackett.nix b/modules/jackett.nix
new file mode 100644
index 0000000..132bc33
--- /dev/null
+++ b/modules/jackett.nix
@@ -0,0 +1,8 @@
+{ ... }:
+{
+ services.jackett = {
+ enable = false;
+ port = 9117;
+ openFirewall = false;
+ };
+}
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"]; }