env: RSS: simplify implementation
This commit is contained in:
parent
a118e17b32
commit
8fa591229f
234
modules/universal/env/feeds.nix
vendored
234
modules/universal/env/feeds.nix
vendored
|
@ -41,214 +41,90 @@ with lib;
|
||||||
|
|
||||||
sane.feeds.rss = mkOption {
|
sane.feeds.rss = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
default = {
|
default = let
|
||||||
|
hourly = { freq = "hourly"; };
|
||||||
|
daily = { freq = "daily"; };
|
||||||
|
weekly = { freq = "weekly"; };
|
||||||
|
infrequent = { freq = "infrequent"; };
|
||||||
|
rat = { cat = "rat"; };
|
||||||
|
tech = { cat = "tech"; };
|
||||||
|
pol = { cat = "pol"; };
|
||||||
|
uncat = { cat = "uncat"; };
|
||||||
|
visual = { cat = "visual"; };
|
||||||
|
in {
|
||||||
# AGGREGATORS (> 1 post/day)
|
# AGGREGATORS (> 1 post/day)
|
||||||
"https://www.lesswrong.com/feed.xml" = {
|
"https://www.lesswrong.com/feed.xml" = rat // hourly;
|
||||||
cat = "rat";
|
"http://www.econlib.org/index.xml" = pol // hourly;
|
||||||
freq = "hourly";
|
|
||||||
};
|
|
||||||
"http://www.econlib.org/index.xml" = {
|
|
||||||
cat = "pol";
|
|
||||||
freq = "hourly";
|
|
||||||
};
|
|
||||||
# AGGREGATORS (< 1 post/day)
|
|
||||||
"https://palladiummag.com/feed" = {
|
|
||||||
cat = "uncat";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
"https://profectusmag.com/feed" = {
|
|
||||||
cat = "uncat";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
|
|
||||||
"https://semiaccurate.com/feed" = {
|
# AGGREGATORS (< 1 post/day)
|
||||||
cat = "tech";
|
"https://palladiummag.com/feed" = uncat // weekly;
|
||||||
freq = "weekly";
|
"https://profectusmag.com/feed" = uncat // weekly;
|
||||||
};
|
"https://semiaccurate.com/feed" = tech // weekly;
|
||||||
"https://linuxphoneapps.org/blog/atom.xml" = {
|
"https://linuxphoneapps.org/blog/atom.xml" = tech // infrequent;
|
||||||
cat = "tech";
|
"https://spectrum.ieee.org/rss" = tech // weekly;
|
||||||
freq = "infrequently";
|
|
||||||
};
|
|
||||||
"https://spectrum.ieee.org/rss" = {
|
|
||||||
cat = "tech";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
|
|
||||||
## No Moods, Ads or Cutesy Fucking Icons
|
## No Moods, Ads or Cutesy Fucking Icons
|
||||||
"https://www.rifters.com/crawl/?feed=rss2" = {
|
"https://www.rifters.com/crawl/?feed=rss2" = uncat // weekly;
|
||||||
cat = "uncat";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
|
|
||||||
# DEVELOPERS
|
# DEVELOPERS
|
||||||
"https://mg.lol/blog/rss/" = {
|
"https://mg.lol/blog/rss/" = infrequent // tech;
|
||||||
cat = "infrequent";
|
|
||||||
freq = "tech";
|
|
||||||
};
|
|
||||||
## Ken Shirriff
|
## Ken Shirriff
|
||||||
"https://www.righto.com/feeds/posts/default" = {
|
"https://www.righto.com/feeds/posts/default" = tech // infrequent;
|
||||||
cat = "tech";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
|
|
||||||
## Vitalik Buterin
|
## Vitalik Buterin
|
||||||
"https://vitalik.ca/feed.xml" = {
|
"https://vitalik.ca/feed.xml" = tech // infrequent;
|
||||||
cat = "tech";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
## ian (Sanctuary)
|
## ian (Sanctuary)
|
||||||
"https://sagacioussuricata.com/feed.xml" = {
|
"https://sagacioussuricata.com/feed.xml" = tech // infrequent;
|
||||||
cat = "tech";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
## Bunnie Juang
|
## Bunnie Juang
|
||||||
"https://www.bunniestudios.com/blog/?feed=rss2" = {
|
"https://www.bunniestudios.com/blog/?feed=rss2" = tech // infrequent;
|
||||||
cat = "tech";
|
"https://blog.danieljanus.pl/atom.xml" = tech // infrequent;
|
||||||
freq = "infrequent";
|
"https://ianthehenry.com/feed.xml" = tech // infrequent;
|
||||||
};
|
"https://bitbashing.io/feed.xml" = tech // infrequent;
|
||||||
"https://blog.danieljanus.pl/atom.xml" = {
|
"https://idiomdrottning.org/feed.xml" = uncat // daily;
|
||||||
cat = "tech";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
"https://ianthehenry.com/feed.xml" = {
|
|
||||||
cat = "tech";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
"https://bitbashing.io/feed.xml" = {
|
|
||||||
cat = "tech";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
"https://idiomdrottning.org/feed.xml" = {
|
|
||||||
cat = "uncat";
|
|
||||||
freq = "daily";
|
|
||||||
};
|
|
||||||
|
|
||||||
# (TECH; POL) COMMENTATORS
|
# (TECH; POL) COMMENTATORS
|
||||||
"http://benjaminrosshoffman.com/feed" = {
|
"http://benjaminrosshoffman.com/feed" = pol // weekly;
|
||||||
cat = "pol";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
## Ben Thompson
|
## Ben Thompson
|
||||||
"https://www.stratechery.com/rss" = {
|
"https://www.stratechery.com/rss" = pol // weekly;
|
||||||
cat = "pol";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
## Balaji
|
## Balaji
|
||||||
"https://balajis.com/rss" = {
|
"https://balajis.com/rss" = pol // weekly;
|
||||||
cat = "pol";
|
"https://www.ben-evans.com/benedictevans/rss.xml" = pol // weekly;
|
||||||
freq = "weekly";
|
"https://www.lynalden.com/feed" = pol // infrequent;
|
||||||
};
|
"https://austinvernon.site/rss.xml" = tech // infrequent;
|
||||||
"https://www.ben-evans.com/benedictevans/rss.xml" = {
|
"https://oversharing.substack.com/feed" = pol // daily;
|
||||||
cat = "pol";
|
"https://doomberg.substack.com/feed" = tech // weekly;
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
"https://www.lynalden.com/feed" = {
|
|
||||||
cat = "pol";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
"https://austinvernon.site/rss.xml" = {
|
|
||||||
cat = "tech";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
"https://oversharing.substack.com/feed" = {
|
|
||||||
cat = "pol";
|
|
||||||
freq = "daily";
|
|
||||||
};
|
|
||||||
"https://doomberg.substack.com/feed" = {
|
|
||||||
cat = "tech";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
## David Rosenthal
|
## David Rosenthal
|
||||||
"https://blog.dshr.org/rss.xml" = {
|
"https://blog.dshr.org/rss.xml" = pol // weekly;
|
||||||
cat = "pol";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
## Matt Levine
|
## Matt Levine
|
||||||
"https://www.bloomberg.com/opinion/authors/ARbTQlRLRjE/matthew-s-levine.rss" = {
|
"https://www.bloomberg.com/opinion/authors/ARbTQlRLRjE/matthew-s-levine.rss" = pol // weekly;
|
||||||
cat = "pol";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
|
|
||||||
# RATIONALITY/PHILOSOPHY/ETC
|
# RATIONALITY/PHILOSOPHY/ETC
|
||||||
"https://samkriss.substack.com/feed" = {
|
"https://samkriss.substack.com/feed" = uncat // infrequent; # ... satire? phil?
|
||||||
cat = "uncat";
|
"https://unintendedconsequenc.es/feed" = rat // infrequent;
|
||||||
freq = "infrequent";
|
"https://applieddivinitystudies.com/atom.xml" = rat // weekly;
|
||||||
};
|
"https://slimemoldtimemold.com/feed.xml" = rat // weekly;
|
||||||
# ... satire? phil?
|
"https://www.richardcarrier.info/feed" = rat // weekly;
|
||||||
"https://unintendedconsequenc.es/feed" = {
|
"https://www.gwern.net/feed.xml" = uncat // infrequent;
|
||||||
cat = "rat";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
|
|
||||||
"https://applieddivinitystudies.com/atom.xml" = {
|
|
||||||
cat = "rat";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
"https://slimemoldtimemold.com/feed.xml" = {
|
|
||||||
cat = "rat";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
|
|
||||||
"https://www.richardcarrier.info/feed" = {
|
|
||||||
cat = "rat";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
"https://www.gwern.net/feed.xml" = {
|
|
||||||
cat = "uncat";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
|
|
||||||
## Jason Crawford
|
## Jason Crawford
|
||||||
"https://rootsofprogress.org/feed.xml" = {
|
"https://rootsofprogress.org/feed.xml" = rat // weekly;
|
||||||
cat = "rat";
|
|
||||||
freq = "weekly";
|
|
||||||
};
|
|
||||||
## Robin Hanson
|
## Robin Hanson
|
||||||
"https://www.overcomingbias.com/feed" = {
|
"https://www.overcomingbias.com/feed" = rat // daily;
|
||||||
cat = "rat";
|
|
||||||
freq = "daily";
|
|
||||||
};
|
|
||||||
## Scott Alexander
|
## Scott Alexander
|
||||||
"https://astralcodexten.substack.com/feed.xml" = {
|
"https://astralcodexten.substack.com/feed.xml" = rat // daily;
|
||||||
cat = "rat";
|
|
||||||
freq = "daily";
|
|
||||||
};
|
|
||||||
## Paul Christiano
|
## Paul Christiano
|
||||||
"https://sideways-view.com/feed" = {
|
"https://sideways-view.com/feed" = rat // infrequent;
|
||||||
cat = "rat";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
## Sean Carroll
|
## Sean Carroll
|
||||||
"https://www.preposterousuniverse.com/rss" = {
|
"https://www.preposterousuniverse.com/rss" = rat // infrequent;
|
||||||
cat = "rat";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
|
|
||||||
# COMICS
|
# COMICS
|
||||||
"https://www.smbc-comics.com/comic/rss" = {
|
"https://www.smbc-comics.com/comic/rss" = visual // daily;
|
||||||
cat = "visual";
|
"https://xkcd.com/atom.xml" = visual // daily;
|
||||||
freq = "daily";
|
"http://dilbert.com/feed" = visual // daily;
|
||||||
};
|
|
||||||
"https://xkcd.com/atom.xml" = {
|
|
||||||
cat = "visual";
|
|
||||||
freq = "daily";
|
|
||||||
};
|
|
||||||
"http://dilbert.com/feed" = {
|
|
||||||
freq = "daily";
|
|
||||||
cat = "visual";
|
|
||||||
};
|
|
||||||
|
|
||||||
# ART
|
# ART
|
||||||
"https://miniature-calendar.com/feed" = {
|
"https://miniature-calendar.com/feed" = visual // daily;
|
||||||
cat = "visual";
|
|
||||||
freq = "daily";
|
|
||||||
};
|
|
||||||
|
|
||||||
# CODE
|
# CODE
|
||||||
"https://github.com/Kaiteki-Fedi/Kaiteki/commits/master.atom" = {
|
"https://github.com/Kaiteki-Fedi/Kaiteki/commits/master.atom" = tech // infrequent;
|
||||||
cat = "tech";
|
|
||||||
freq = "infrequent";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user