1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/systems/ful/panoptikon.nix

129 lines
4.5 KiB
Nix
Raw Normal View History

2023-03-24 17:00:44 +01:00
{
config,
pkgs,
lib,
...
2025-12-27 22:22:54 +01:00
}:
let
2026-02-21 16:26:19 +01:00
irc-xxx = pkgs.panoptikonReporters.kpaste-irc {
target = lib.escapeShellArg "#xxx";
retiolumLink = true;
};
2023-03-24 19:02:18 +01:00
2026-02-21 16:26:19 +01:00
matrix-kmein = pkgs.panoptikonReporters.matrix {
homeserver = "matrix.4d2.org";
roomId = lib.escapeShellArg "!zlwCuPiCNMSxDviFzA:4d2.org";
tokenPath = config.age.secrets.matrix-token-lakai.path;
};
2024-10-08 22:36:14 +02:00
2026-02-21 16:26:19 +01:00
telegram-kmein = pkgs.panoptikonReporters.telegram {
tokenPath = config.age.secrets.telegram-token-kmein.path;
chatId = "-1001796440545";
};
2026-02-21 16:26:19 +01:00
irc-kmein = pkgs.panoptikonReporters.kpaste-irc {
messagePrefix = "$PANOPTIKON_WATCHER: ";
target = "kmein";
nick = "panoptikon-kmein";
retiolumLink = false;
};
2025-12-27 22:22:54 +01:00
in
{
2026-02-21 16:26:19 +01:00
age.secrets.telegram-token-kmein = {
file = ../../secrets/telegram-token-kmein.age;
owner = "panoptikon";
group = "panoptikon";
mode = "400";
};
2024-10-08 22:36:14 +02:00
age.secrets.matrix-token-lakai = {
file = ../../secrets/matrix-token-lakai.age;
owner = "panoptikon";
group = "panoptikon";
mode = "400";
};
2023-03-24 17:00:44 +01:00
services.panoptikon = {
enable = true;
2023-03-24 19:02:18 +01:00
watchers = {
"github-meta" = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.json {
jqScript = ''
{
ssh_key_fingerprints: .ssh_key_fingerprints,
ssh_keys: .ssh_keys
}
'';
} "https://api.github.com/meta";
2025-12-27 22:22:54 +01:00
reporters = [ irc-xxx ];
2023-03-24 19:02:18 +01:00
};
2024-03-31 12:48:16 +02:00
kobudo-tesshinkan = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.html "https://kobudo-tesshinkan.eu/index.php/de/termine-berichte/lehrgaenge/";
2025-12-27 22:22:54 +01:00
reporters = [
telegram-kmein
matrix-kmein
];
2024-03-31 12:48:16 +02:00
};
2023-03-24 19:02:18 +01:00
carolinawelslau = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#main" "https://carolinawelslau.de/";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
2023-11-06 10:55:07 +01:00
humboldt-preis = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#content-core" "https://www.hu-berlin.de/de/ueberblick/menschen/ehrungen/humboldtpreis";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-11-06 10:55:07 +01:00
};
2023-03-24 19:02:18 +01:00
lisalittmann = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#site-content" "https://lisalittmann.de/";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
lisalittmann-archive = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#site-content" "https://lisalittmann.de/archive/";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
lisalittmann-projects = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#site-content" "https://lisalittmann.de/projects/";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
tatort = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector ".linklist" "https://www.daserste.de/unterhaltung/krimi/tatort/sendung/index.html";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
warpgrid-idiomarium = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#site-content" "https://warpgrid.de/idiomarium/";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
warpgrid-futurism = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#site-content" "https://warpgrid.de/futurism/";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
warpgrid-imagiary = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#site-content" "https://warpgrid.de/imagiary/";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
warpgrid-alchemy = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#site-content" "https://warpgrid.de/alchemy/";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
indogermanische-forschungen = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#latestIssue" "https://www.degruyter.com/journal/key/INDO/html";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
ig-neuigkeiten = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "[itemprop=articleBody]" "https://www.indogermanistik.org/aktuelles/neuigkeiten.html";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
ig-tagungen = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "[itemprop=articleBody]" "https://www.indogermanistik.org/tagungen/tagungen-der-ig.html";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-03-24 19:02:18 +01:00
};
2023-11-28 16:11:04 +01:00
fu-distant = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#current_events" "https://www.geschkult.fu-berlin.de/en/e/ma-distant/Termine/index.html";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-11-28 16:11:04 +01:00
};
fu-aegyptologie = {
2026-02-21 16:26:19 +01:00
script = pkgs.panoptikonWatchers.htmlSelector "#current_events" "https://www.geschkult.fu-berlin.de/e/aegyptologie/termine/index.html";
2025-12-27 22:22:54 +01:00
reporters = [ matrix-kmein ];
2023-11-28 16:11:04 +01:00
};
2023-03-24 17:00:44 +01:00
};
};
}