alexandria: package and enable tt-rss readability plugin
This commit is contained in:
parent
fe1c931ca6
commit
b70c7f506e
2 changed files with 48 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
|
|
@ -16,17 +17,19 @@ 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$" = {
|
||||
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};
|
||||
|
|
@ -36,4 +39,5 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
33
packages/tt-rss-plugin-af-readability.nix
Normal file
33
packages/tt-rss-plugin-af-readability.nix
Normal file
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue