diff --git a/home/home.nix b/home/home.nix index 1843b83..9149daf 100644 --- a/home/home.nix +++ b/home/home.nix @@ -21,7 +21,7 @@ in { ./programs/less.nix ./programs/ncmpcpp.nix ./programs/neovim.nix - ./programs/newsboat.nix + ./programs/newsboat ./programs/tmux.nix ./programs/zsh diff --git a/home/programs/newsboat.nix b/home/programs/newsboat/default.nix similarity index 98% rename from home/programs/newsboat.nix rename to home/programs/newsboat/default.nix index 63ab8d7..93c53b7 100644 --- a/home/programs/newsboat.nix +++ b/home/programs/newsboat/default.nix @@ -3,6 +3,8 @@ let defaultBrowser = "google-chrome-stable %u"; videoViewer = "mpv %u"; in { + imports = [ ./sources.nix ]; + programs.newsboat = { enable = true; autoReload = true; diff --git a/home/programs/newsboat/sources.nix b/home/programs/newsboat/sources.nix new file mode 100644 index 0000000..c4c118e --- /dev/null +++ b/home/programs/newsboat/sources.nix @@ -0,0 +1,41 @@ +{ ... }: +let + mkSource = tags: url: { inherit tags url; }; +in { + programs.newsboat.urls = [ + (mkSource [ "tech" "linux" ] "https://lukesmith.xyz/rss.xml") + (mkSource [ "tech" "vim" "old" ] "https://castel.dev/rss.xml") + (mkSource [ "tech" "linux" "nixos" ] "https://christine.website/blog.rss") + (mkSource [ "japanese" "language" "old" ] "http://feeds.feedburner.com/LocalizingJapan") + (mkSource [ "tech" "linux" ] "http://xahlee.info/comp/blog.xml") + (mkSource [ "japanese" "language" ] "https://www.outlier-linguistics.com/blogs/japanese.atom") + (mkSource [ "tech" "linux" ] "https://archlinux.org/feeds/news/") + (mkSource [ "tech" "linux" ] "https://bartoszmilewski.com/feed/") + (mkSource [ "tech" "linux" "nixos" ] "https://nixos.org//blog/announcements-rss.xml") + (mkSource [ "tech" "linux" ] "https://www.digitalneanderthal.com/index.xml") + (mkSource [ "tech" "ntnu" ] "https://omegav.no/newsrss") + (mkSource [ "tech" ] "https://code.visualstudio.com/feed.xml") + (mkSource [ "tech" "linux" "nixos" ] "https://blog.ysndr.de/atom.xml") + (mkSource [ "tech" "linux" "nixos" ] "https://kaushikc.org/atom.xml") + (mkSource [ "tech" "linux" "nixos" ] "https://ianthehenry.com/feed.xml") + (mkSource [ "tech" "linux" "ntnu" ] "https://www.pvv.ntnu.no/w/api.php?hidebots=1&urlversion=1&days=7&limit=50&action=feedrecentchanges&feedformat=atom") + (mkSource [ "ntnu" ] "https://varsel.it.ntnu.no/subscribe/rss/") + (mkSource [ "tech" "linux" "japanese" ] "https://www.ncaq.net/feed.atom") + (mkSource [ "tech" "linux" "haskell" "nixos" "functional-programming" ] "https://www.haskellforall.com/feeds/posts/default") + (mkSource [ "tech" "haskell" "functional-programming" ] "https://williamyaoh.com/feed.atom") + (mkSource [ "tech" "haskell" "functional-programming" ] "https://www.parsonsmatt.org/feed.xml") + (mkSource [ "tech" "haskell" "functional-programming" "python" ] "http://blog.ezyang.com/feed/") + (mkSource [ "tech" "haskell" "functional-programming" ] "https://lexi-lambda.github.io/feeds/all.rss.xml") + (mkSource [ "tech" "haskell" "functional-programming" ] "https://www.stephendiehl.com/feed.rss") + (mkSource [ "tech" "haskell" "functional-programming" "emacs" ] "https://chrisdone.com/rss.xml") + (mkSource [ "tech" "haskell" "functional-programming" "nixos" ] "https://markkarpov.com/feed.atom") + (mkSource [ "tech" "flutter" ] "https://resocoder.com/feed/") + (mkSource [ "tech" "compilers" ] "https://existentialtype.wordpress.com/feed/") + (mkSource [ "tech" "compilers" "haskell" "functional-programming" "old" ] "https://skilpat.tumblr.com/rss") + (mkSource [ "language" ] "https://feeds.feedburner.com/blogspot/Ckyi") + (mkSource [ "tech" "compilers" ] "https://go.dev/blog/feed.atom") + (mkSource [ "tech" "linux" "nixos" ] "https://myme.no/feed.xml") + (mkSource [ "tech" "linux" "nixos" "compilers" ] "https://flyx.org/feed.xml") + (mkSource [ "tech" "linux" ] "https://blog.jfx.ac/feed.xml") + ]; +}