1
0

hosts/web-2: Add feeds.clerie.de

This commit is contained in:
2025-01-05 16:26:46 +01:00
parent 1b86f094c8
commit e70ff56b28
8 changed files with 94 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "feeds-dir";
text = builtins.readFile ./feeds-dir.sh;
runtimeInputs = with pkgs; [
rainbowrss
];
}

7
pkgs/feeds-dir/feeds-dir.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
for file in ./*.txt; do
rainbowrss --feeds "${file}" --out "$(basename "${file}" ".txt").html" || true
done