diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-09-13 16:43:10 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-09-13 16:43:10 +0530 |
| commit | 57c592ac541c8837981a3dc0c2a12b3ba8a4fbe7 (patch) | |
| tree | 22040f2b1aaa94194dedb408703ac36aaafb8b0e | |
| parent | ce028570c53c8c45661d9fe0168920db05737c39 (diff) | |
| download | nixos-config-57c592ac541c8837981a3dc0c2a12b3ba8a4fbe7.tar.gz nixos-config-57c592ac541c8837981a3dc0c2a12b3ba8a4fbe7.zip | |
Add jackett module
| -rw-r--r-- | configuration.nix | 1 | ||||
| -rw-r--r-- | modules/jackett.nix | 8 | ||||
| -rw-r--r-- | modules/newsboat.home/default.nix | 6 | ||||
| -rw-r--r-- | modules/newsboat.home/public-feed.nix | 6 |
4 files changed, 15 insertions, 6 deletions
diff --git a/configuration.nix b/configuration.nix index af97a11..e454aef 100644 --- a/configuration.nix +++ b/configuration.nix @@ -17,6 +17,7 @@ in ./modules/torrent.nix ./modules/work.nix ./modules/keyboard/default.nix + ./modules/jackett.nix ]; nixpkgs.config = { 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"]; } |
