From b70c7f506e9df7e04c8b49a99f47b5fe2251589b Mon Sep 17 00:00:00 2001 From: William Date: Thu, 16 Apr 2026 09:56:24 -0300 Subject: [PATCH] alexandria: package and enable tt-rss readability plugin --- aspects/hosts/_alexandria/ttrss.nix | 26 ++++++++++-------- packages/tt-rss-plugin-af-readability.nix | 33 +++++++++++++++++++++++ 2 files changed, 48 insertions(+), 11 deletions(-) create mode 100644 packages/tt-rss-plugin-af-readability.nix diff --git a/aspects/hosts/_alexandria/ttrss.nix b/aspects/hosts/_alexandria/ttrss.nix index ba03c21..ec447e5 100644 --- a/aspects/hosts/_alexandria/ttrss.nix +++ b/aspects/hosts/_alexandria/ttrss.nix @@ -1,6 +1,7 @@ { config, inputs, + pkgs, ... }: @@ -16,22 +17,25 @@ in singleUserMode = true; virtualHost = null; database.createLocally = true; + pluginPackages = with pkgs; [ + tt-rss-theme-feedly + tt-rss-plugin-af-readability + ]; }; nginx.virtualHosts = mkNginxVHosts { domains."rss.baduhai.dev" = { root = "${config.services."tt-rss".root}/www"; - - locations."/".index = "index.php"; - - locations."~* /feed-icons/(\\d+)\\.ico".return = "302 /public.php?op=feed_icon&id=$1"; - - locations."~ \\.php$" = { - extraConfig = '' - fastcgi_split_path_info ^(.+\.php)(/.+)$; - fastcgi_pass unix:${config.services.phpfpm.pools.${config.services."tt-rss".pool}.socket}; - fastcgi_index index.php; - ''; + locations = { + "/".index = "index.php"; + "~* /feed-icons/(\\d+)\\.ico".return = "302 /public.php?op=feed_icon&id=$1"; + "~ \\.php$" = { + extraConfig = '' + fastcgi_split_path_info ^(.+\.php)(/.+)$; + fastcgi_pass unix:${config.services.phpfpm.pools.${config.services."tt-rss".pool}.socket}; + fastcgi_index index.php; + ''; + }; }; }; }; diff --git a/packages/tt-rss-plugin-af-readability.nix b/packages/tt-rss-plugin-af-readability.nix new file mode 100644 index 0000000..98342e7 --- /dev/null +++ b/packages/tt-rss-plugin-af-readability.nix @@ -0,0 +1,33 @@ +{ ... }: + +{ + perSystem = + { pkgs, ... }: + { + packages.tt-rss-plugin-af-readability = pkgs.stdenv.mkDerivation { + pname = "tt-rss-plugin-af-readability"; + version = "unstable-2025-10-16"; + + src = pkgs.fetchFromGitHub { + owner = "tt-rss"; + repo = "tt-rss-plugin-af-readability"; + rev = "fce528aa69c2a7193fb7eb3a3cd9dd17885d6ab6"; + hash = "sha256-3rxrICtm6+ujlBHj5Su2sSEq3lgiHhQMJ/OVfzhzYXA="; + }; + + installPhase = '' + mkdir -p $out/af_readability + + cp -a * $out/af_readability/ + ''; + + meta = { + description = "Plugin for TT-RSS to inline article content using Readability"; + license = pkgs.lib.licenses.gpl3; + homepage = "https://github.com/tt-rss/tt-rss-plugin-af-readability/"; + maintainers = with pkgs.lib.maintainers; [ gdamjan ]; + inherit (pkgs.tt-rss.meta) platforms; + }; + }; + }; +}