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,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
@ -16,22 +17,25 @@ in
|
||||||
singleUserMode = true;
|
singleUserMode = true;
|
||||||
virtualHost = null;
|
virtualHost = null;
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
|
pluginPackages = with pkgs; [
|
||||||
|
tt-rss-theme-feedly
|
||||||
|
tt-rss-plugin-af-readability
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts = mkNginxVHosts {
|
nginx.virtualHosts = mkNginxVHosts {
|
||||||
domains."rss.baduhai.dev" = {
|
domains."rss.baduhai.dev" = {
|
||||||
root = "${config.services."tt-rss".root}/www";
|
root = "${config.services."tt-rss".root}/www";
|
||||||
|
locations = {
|
||||||
locations."/".index = "index.php";
|
"/".index = "index.php";
|
||||||
|
"~* /feed-icons/(\\d+)\\.ico".return = "302 /public.php?op=feed_icon&id=$1";
|
||||||
locations."~* /feed-icons/(\\d+)\\.ico".return = "302 /public.php?op=feed_icon&id=$1";
|
"~ \\.php$" = {
|
||||||
|
extraConfig = ''
|
||||||
locations."~ \\.php$" = {
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
extraConfig = ''
|
fastcgi_pass unix:${config.services.phpfpm.pools.${config.services."tt-rss".pool}.socket};
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_index index.php;
|
||||||
fastcgi_pass unix:${config.services.phpfpm.pools.${config.services."tt-rss".pool}.socket};
|
'';
|
||||||
fastcgi_index index.php;
|
};
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
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