nix-files/hosts/common/programs/newsflash.nix

23 lines
840 B
Nix
Raw Normal View History

# news-flash RSS viewer
# - feeds have to be manually imported:
# - Local RSS -> Import OPML -> ~/.config/newsflashFeeds.opml
# - clicking article-embedded links doesn't work because of xdg portal stuff
# - need to either run unsandboxed, or install a org.freedesktop.portal.OpenURI handler
2023-01-08 05:24:56 +00:00
{ config, sane-lib, ... }:
let
2023-01-08 05:24:56 +00:00
feeds = sane-lib.feeds;
all-feeds = config.sane.feeds;
# text/image: newsflash renders these natively
# podcast/video: newsflash dispatches these to xdg-open
wanted-feeds = feeds.filterByFormat [ "text" "image" "podcast" "video" ] all-feeds;
in {
sane.programs.newsflash = {
2023-12-13 03:06:08 +00:00
slowToBuild = true; # mainly for desktop: webkitgtk-6.0
persist.byStore.plaintext = [ ".local/share/news-flash" ];
fs.".config/newsflashFeeds.opml".symlink.text =
feeds.feedsToOpml wanted-feeds
;
};
}