rss2email sucks

This commit is contained in:
Sridhar Ratnakumar 2025-08-28 22:40:20 -04:00
parent 93370fe6a0
commit 8ebacc5c88
3 changed files with 0 additions and 67 deletions

View file

@ -1,28 +0,0 @@
{ flake, config, ... }:
{
age.secrets."gmail-app-password" = {
file = flake.inputs.self + /secrets/gmail-app-password.age;
# HACK: why couple to caller of sendmail? smh.
owner = "rss2email";
group = "rss2email";
};
programs.msmtp = {
enable = true;
setSendmail = true;
defaults = {
auth = true;
tls = true;
tls_trust_file = "/etc/ssl/certs/ca-certificates.crt";
};
accounts.default = {
host = "smtp.gmail.com";
port = 587;
from = "pervasiveproximity@gmail.com";
user = "pervasiveproximity@gmail.com";
passwordeval = "cat ${config.age.secrets."gmail-app-password".path}";
};
};
}

View file

@ -1,20 +0,0 @@
{ ... }:
{
services.rss2email = {
enable = true;
to = "srid@srid.ca";
interval = "1d"; # Check every day
config = {
digest = true;
digest-type = "multipart/mixed"; # Put content in email body instead of .eml attachments
html-mail = true; # Send HTML emails for better formatting
subject-format = "Daily digest: {feed-title}"; # Better subject line
use-css = true;
css = "body { font-family: Arial, sans-serif; line-height: 1.6; } h2 { color: #333; border-bottom: 2px solid #eee; padding-bottom: 5px; } a { color: #007acc; text-decoration: none; }";
force-from = true; # Only use the configured 'from' address
name-format = ""; # Don't add feed/author names to From field
};
feeds = import ./feeds.nix;
};
}

View file

@ -1,19 +0,0 @@
let
redditTop = subreddit: limit: period:
"https://www.reddit.com/r/${subreddit}/top/.rss?t=${period}&limit=${toString limit}";
in
{
# actualism
vineeto-discourse.url = "https://discuss.actualism.online/u/vineeto/activity.rss";
# general tech news
hackernews-best.url = "https://hnrss.org/best?points=50";
notebookcheck.url = "https://www.notebookcheck.net/RSS-Feed-Notebook-Reviews.8156.0.html";
# reddit
haskell-reddit-top.url = redditTop "haskell" 5 "day";
nixos-reddit-top.url = redditTop "nixos" 5 "day";
# woke drama
nixos-drupol-discourse-ukraine.url = "https://discourse.nixos.org/t/proposal-update-the-nixos-logo-for-ukrainian-flag-day-23-august/68375.rss";
}