2023-01-11 13:16:26 +00:00
|
|
|
{ lib, sane-data, ... }:
|
2022-10-15 05:37:02 +00:00
|
|
|
let
|
|
|
|
hourly = { freq = "hourly"; };
|
|
|
|
daily = { freq = "daily"; };
|
|
|
|
weekly = { freq = "weekly"; };
|
|
|
|
infrequent = { freq = "infrequent"; };
|
|
|
|
|
|
|
|
art = { cat = "art"; };
|
|
|
|
humor = { cat = "humor"; };
|
|
|
|
pol = { cat = "pol"; }; # or maybe just "social"
|
|
|
|
rat = { cat = "rat"; };
|
|
|
|
tech = { cat = "tech"; };
|
|
|
|
uncat = { cat = "uncat"; };
|
|
|
|
|
2023-01-11 16:20:53 +00:00
|
|
|
text = { format = "text"; };
|
|
|
|
|
2022-10-15 05:37:02 +00:00
|
|
|
mkRss = format: url: { inherit url format; } // uncat // infrequent;
|
2022-10-25 03:14:36 +00:00
|
|
|
# format-specific helpers
|
2023-01-08 05:24:56 +00:00
|
|
|
mkText = mkRss "text";
|
|
|
|
mkImg = mkRss "image";
|
|
|
|
mkPod = mkRss "podcast";
|
2022-10-15 05:37:02 +00:00
|
|
|
|
2022-10-25 03:14:36 +00:00
|
|
|
# host-specific helpers
|
2023-01-08 05:24:56 +00:00
|
|
|
mkSubstack = subdomain: { substack = subdomain; };
|
2022-10-25 03:14:36 +00:00
|
|
|
|
2023-01-11 13:16:26 +00:00
|
|
|
fromDb = name:
|
|
|
|
let
|
|
|
|
raw = sane-data.feeds."${name}";
|
|
|
|
in {
|
|
|
|
url = raw.url;
|
|
|
|
# not sure the exact mapping with velocity here: entries per day?
|
|
|
|
freq = lib.mkDefault (
|
|
|
|
if raw.velocity or 0 > 2 then
|
|
|
|
"hourly"
|
|
|
|
else if raw.velocity or 0 > 0.5 then
|
|
|
|
"daily"
|
|
|
|
else if raw.velocity or 0 > 0.1 then
|
|
|
|
"weekly"
|
|
|
|
else
|
|
|
|
"infrequent"
|
|
|
|
);
|
2023-01-11 14:51:17 +00:00
|
|
|
} // lib.optionalAttrs (raw.is_podcast or false) {
|
|
|
|
format = "podcast";
|
2023-01-13 04:13:44 +00:00
|
|
|
} // lib.optionalAttrs (raw.title or "" != "") {
|
|
|
|
title = lib.mkDefault raw.title;
|
2023-01-11 13:16:26 +00:00
|
|
|
};
|
|
|
|
|
2022-10-15 05:37:02 +00:00
|
|
|
podcasts = [
|
2023-01-11 13:16:26 +00:00
|
|
|
(fromDb "lexfridman.com/podcast" // rat)
|
|
|
|
# (mkPod "https://lexfridman.com/feed/podcast/" // rat // weekly)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Astral Codex Ten
|
2023-01-11 13:16:26 +00:00
|
|
|
(fromDb "sscpodcast.libsyn.com" // rat)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Econ Talk
|
2023-01-11 14:51:17 +00:00
|
|
|
(fromDb "feeds.simplecast.com/wgl4xEgL" // rat)
|
|
|
|
## Cory Doctorow -- both podcast & text entries
|
|
|
|
(fromDb "craphound.com" // pol)
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkPod "https://congressionaldish.libsyn.com/rss" // pol // infrequent)
|
2023-01-11 16:11:46 +00:00
|
|
|
## Civboot -- https://anchor.fm/civboot
|
|
|
|
(fromDb "anchor.fm/s/34c7232c/podcast/rss" // tech)
|
2023-01-11 14:51:17 +00:00
|
|
|
(fromDb "feeds.feedburner.com/80000HoursPodcast" // rat)
|
2023-01-11 13:16:26 +00:00
|
|
|
(fromDb "allinchamathjason.libsyn.com" // pol)
|
2023-01-11 15:32:42 +00:00
|
|
|
(fromDb "acquired.libsyn.com" // tech)
|
2023-01-11 14:51:17 +00:00
|
|
|
# The Intercept - Deconstructed; also available: <rss.acast.com/deconstructed>
|
|
|
|
(fromDb "rss.prod.firstlook.media/deconstructed/podcast.rss" // pol)
|
2022-10-14 16:02:50 +00:00
|
|
|
## The Daily
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkPod "https://feeds.simplecast.com/54nAGcIl" // pol // daily)
|
2023-01-11 14:51:17 +00:00
|
|
|
# The Intercept - Intercepted; also available: <https://rss.acast.com/intercepted-with-jeremy-scahill>
|
|
|
|
(fromDb "rss.prod.firstlook.media/intercepted/podcast.rss" // pol)
|
|
|
|
(fromDb "podcast.posttv.com/itunes/post-reports.xml" // pol)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Eric Weinstein
|
2023-01-11 14:51:17 +00:00
|
|
|
(fromDb "rss.art19.com/the-portal" // rat)
|
2023-01-11 15:03:24 +00:00
|
|
|
(fromDb "darknetdiaries.com" // tech)
|
|
|
|
## Radiolab -- also available here, but ONLY OVER HTTP: <http://feeds.wnyc.org/radiolab>
|
|
|
|
(fromDb "feeds.feedburner.com/radiolab" // pol)
|
2023-01-11 15:15:03 +00:00
|
|
|
## Sam Harris
|
|
|
|
(fromDb "wakingup.libsyn.com" // pol)
|
2023-01-11 15:25:32 +00:00
|
|
|
## 99% Invisible -- also available here: <https://feeds.simplecast.com/BqbsxVfO>
|
|
|
|
(fromDb "feeds.99percentinvisible.org/99percentinvisible" // pol)
|
2023-01-11 15:32:42 +00:00
|
|
|
(fromDb "rss.acast.com/ft-tech-tonic" // tech)
|
2023-01-11 15:06:18 +00:00
|
|
|
(fromDb "feeds.feedburner.com/dancarlin/history" // rat)
|
2023-01-11 15:46:34 +00:00
|
|
|
(fromDb "rss.art19.com/60-minutes" // pol)
|
2022-11-05 13:16:20 +00:00
|
|
|
## The Verge - Decoder
|
2023-01-11 15:51:41 +00:00
|
|
|
(fromDb "feeds.megaphone.fm/recodedecode" // tech)
|
2022-12-06 06:58:59 +00:00
|
|
|
## Matrix (chat) Live
|
2023-01-11 15:55:07 +00:00
|
|
|
(fromDb "feed.podbean.com/matrixlive/feed.xml" // tech)
|
2023-01-11 16:05:25 +00:00
|
|
|
## Michael Malice - Your Welcome -- also available here: <https://origin.podcastone.com/podcast?categoryID2=2232>
|
|
|
|
(fromDb "rss.art19.com/your-welcome" // pol)
|
2022-10-14 16:02:50 +00:00
|
|
|
];
|
2022-10-09 12:43:53 +00:00
|
|
|
|
2022-10-15 05:37:02 +00:00
|
|
|
texts = [
|
2022-10-14 16:02:50 +00:00
|
|
|
# AGGREGATORS (> 1 post/day)
|
2023-01-11 13:16:26 +00:00
|
|
|
(fromDb "lesswrong.com" // rat)
|
|
|
|
(fromDb "econlib.org" // pol)
|
2022-10-09 12:43:53 +00:00
|
|
|
|
2022-10-14 16:02:50 +00:00
|
|
|
# AGGREGATORS (< 1 post/day)
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://palladiummag.com/feed" // uncat // weekly)
|
|
|
|
(mkText "https://profectusmag.com/feed" // uncat // weekly)
|
|
|
|
(mkText "https://semiaccurate.com/feed" // tech // weekly)
|
|
|
|
(mkText "https://linuxphoneapps.org/blog/atom.xml" // tech // infrequent)
|
|
|
|
(mkText "https://spectrum.ieee.org/rss" // tech // weekly)
|
2022-10-09 12:43:53 +00:00
|
|
|
|
2022-10-14 16:02:50 +00:00
|
|
|
## No Moods, Ads or Cutesy Fucking Icons
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://www.rifters.com/crawl/?feed=rss2" // uncat // weekly)
|
2022-10-09 12:43:53 +00:00
|
|
|
|
2022-10-14 16:02:50 +00:00
|
|
|
# DEVELOPERS
|
2023-01-11 13:16:26 +00:00
|
|
|
(fromDb "uninsane.org" // tech)
|
|
|
|
(fromDb "mg.lol" // tech)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Ken Shirriff
|
2023-01-11 13:16:26 +00:00
|
|
|
(fromDb "righto.com" // tech)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Vitalik Buterin
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://vitalik.ca/feed.xml" // tech // infrequent)
|
2022-10-14 16:02:50 +00:00
|
|
|
## ian (Sanctuary)
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://sagacioussuricata.com/feed.xml" // tech // infrequent)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Bunnie Juang
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://www.bunniestudios.com/blog/?feed=rss2" // tech // infrequent)
|
|
|
|
(mkText "https://blog.danieljanus.pl/atom.xml" // tech // infrequent)
|
|
|
|
(mkText "https://ianthehenry.com/feed.xml" // tech // infrequent)
|
|
|
|
(mkText "https://bitbashing.io/feed.xml" // tech // infrequent)
|
|
|
|
(mkText "https://idiomdrottning.org/feed.xml" // uncat // daily)
|
2022-10-21 16:30:54 +00:00
|
|
|
(mkText "https://anish.lakhwara.com/home.html" // tech // weekly)
|
2022-11-11 07:50:42 +00:00
|
|
|
(mkText "https://www.jefftk.com/news.rss" // tech // daily)
|
2022-12-01 19:00:08 +00:00
|
|
|
(mkText "https://pomeroyb.com/feed.xml" // tech // infrequent)
|
2022-10-09 12:43:53 +00:00
|
|
|
|
2022-10-14 16:02:50 +00:00
|
|
|
# (TECH; POL) COMMENTATORS
|
2023-01-11 16:20:53 +00:00
|
|
|
(fromDb "edwardsnowden.substack.com" // pol // text)
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "http://benjaminrosshoffman.com/feed" // pol // weekly)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Ben Thompson
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://www.stratechery.com/rss" // pol // weekly)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Balaji
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://balajis.com/rss" // pol // weekly)
|
|
|
|
(mkText "https://www.ben-evans.com/benedictevans/rss.xml" // pol // weekly)
|
|
|
|
(mkText "https://www.lynalden.com/feed" // pol // infrequent)
|
|
|
|
(mkText "https://austinvernon.site/rss.xml" // tech // infrequent)
|
2022-10-25 03:14:36 +00:00
|
|
|
(mkSubstack "oversharing" // pol // daily)
|
|
|
|
(mkSubstack "doomberg" // tech // weekly)
|
2022-10-14 16:02:50 +00:00
|
|
|
## David Rosenthal
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://blog.dshr.org/rss.xml" // pol // weekly)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Matt Levine
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://www.bloomberg.com/opinion/authors/ARbTQlRLRjE/matthew-s-levine.rss" // pol // weekly)
|
2022-12-03 06:11:43 +00:00
|
|
|
(mkText "https://stpeter.im/atom.xml" // pol // weekly)
|
2022-10-09 12:43:53 +00:00
|
|
|
|
2022-10-14 16:02:50 +00:00
|
|
|
# RATIONALITY/PHILOSOPHY/ETC
|
2022-10-25 03:14:36 +00:00
|
|
|
(mkSubstack "samkriss" // humor // infrequent)
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://unintendedconsequenc.es/feed" // rat // infrequent)
|
|
|
|
(mkText "https://applieddivinitystudies.com/atom.xml" // rat // weekly)
|
|
|
|
(mkText "https://slimemoldtimemold.com/feed.xml" // rat // weekly)
|
|
|
|
(mkText "https://www.richardcarrier.info/feed" // rat // weekly)
|
|
|
|
(mkText "https://www.gwern.net/feed.xml" // uncat // infrequent)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Jason Crawford
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://rootsofprogress.org/feed.xml" // rat // weekly)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Robin Hanson
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://www.overcomingbias.com/feed" // rat // daily)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Scott Alexander
|
2022-10-25 03:14:36 +00:00
|
|
|
(mkSubstack "astralcodexten" // rat // daily)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Paul Christiano
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://sideways-view.com/feed" // rat // infrequent)
|
2022-10-14 16:02:50 +00:00
|
|
|
## Sean Carroll
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkText "https://www.preposterousuniverse.com/rss" // rat // infrequent)
|
2022-10-09 12:43:53 +00:00
|
|
|
|
2022-12-25 03:39:44 +00:00
|
|
|
## mostly dating topics. not advice, or humor, but looking through a social lens
|
|
|
|
(mkText "https://putanumonit.com/feed" // rat // infrequent)
|
|
|
|
|
2022-10-15 05:37:02 +00:00
|
|
|
# CODE
|
2022-12-25 03:39:44 +00:00
|
|
|
# (mkText "https://github.com/Kaiteki-Fedi/Kaiteki/commits/master.atom" // tech // infrequent)
|
2022-10-15 05:37:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
images = [
|
|
|
|
(mkImg "https://www.smbc-comics.com/comic/rss" // humor // daily)
|
|
|
|
(mkImg "https://xkcd.com/atom.xml" // humor // daily)
|
2023-01-08 05:30:36 +00:00
|
|
|
(mkImg "https://pbfcomics.com/feed" // humor // infrequent)
|
2023-01-08 05:28:15 +00:00
|
|
|
# (mkImg "http://dilbert.com/feed" // humor // daily)
|
2022-10-09 12:43:53 +00:00
|
|
|
|
2022-10-14 16:02:50 +00:00
|
|
|
# ART
|
2022-10-15 05:37:02 +00:00
|
|
|
(mkImg "https://miniature-calendar.com/feed" // art // daily)
|
|
|
|
];
|
2023-01-08 05:24:56 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
sane.feeds = texts ++ images ++ podcasts;
|
2023-01-11 14:51:17 +00:00
|
|
|
|
|
|
|
assertions = builtins.map
|
|
|
|
(p: {
|
|
|
|
assertion = p.format or "unknown" == "podcast";
|
|
|
|
message = ''${p.url} is not a podcast: ${p.format or "unknown"}'';
|
|
|
|
})
|
|
|
|
podcasts;
|
2022-09-23 11:14:46 +00:00
|
|
|
}
|