mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
Compare commits
4 Commits
7c67d3f88a
...
7ad02f75a9
| Author | SHA1 | Date | |
|---|---|---|---|
| 7ad02f75a9 | |||
| 2f3d4fb3b1 | |||
| 005da63416 | |||
| beaf6c81e4 |
@@ -29,6 +29,23 @@ let
|
||||
"strip"
|
||||
];
|
||||
}
|
||||
{
|
||||
name = "fxght.or.flxght";
|
||||
url = "https://api.tellonym.me/profiles/name/fxght.or.flxght?limit=20";
|
||||
headers.tellonym-client = "web:0.52.0";
|
||||
filter = [
|
||||
{
|
||||
shellpipe = ''
|
||||
${pkgs.jq}/bin/jq '.answers | map({
|
||||
question: .tell,
|
||||
answer: .answer,
|
||||
date: .createdAt,
|
||||
media: .media | map(.url)
|
||||
})'
|
||||
'';
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
configFile = pkgs.writeText "urlwatch.yaml" (builtins.toJSON {
|
||||
@@ -66,6 +83,9 @@ let
|
||||
# };
|
||||
};
|
||||
});
|
||||
urlwatch = pkgs.urlwatch.overrideAttrs (attrs: {
|
||||
patches = [ <niveum/packages/urlwatch-insecure.patch> ];
|
||||
});
|
||||
in
|
||||
{
|
||||
users.extraUsers.urlwatch = {
|
||||
@@ -77,7 +97,7 @@ in
|
||||
enable = true;
|
||||
startAt = "*-*-* 05:00:00";
|
||||
script = ''
|
||||
${pkgs.urlwatch}/bin/urlwatch \
|
||||
${urlwatch}/bin/urlwatch \
|
||||
--config=${lib.escapeShellArg configFile} \
|
||||
--urls=${lib.escapeShellArg urlsFile}
|
||||
'';
|
||||
|
||||
@@ -44,10 +44,11 @@ in {
|
||||
/set irc.server.freenode.autojoin "#krebs,#flipdot,##myengadin,#nixos,#nixos-de,#haskell"
|
||||
/set irc.server.hackint.autojoin "#hsmr"
|
||||
/set irc.server.irc.r.autojoin "#xxx,#brockman"
|
||||
/set irc.server.news.r.autojoin "#drachengame,#berlin"
|
||||
/set irc.server.news.r.autojoin "#all,#drachengame,#berlin"
|
||||
/set irc.server.news.r.command "/oper aids balls"
|
||||
/set logger.level.irc.news.r.#all 0
|
||||
|
||||
/filter addreplace corona irc.news.r.* * [kc]orona|[kc]ovid|virus|lockdown|va[kc][sc]in|mutante|mutation|impf|pandemi|κορ[ωο]νοϊός|корона|expert[es]
|
||||
/filter addreplace corona irc.news.r.* * [kc]orona|[kc]ovid|virus|lockdown|va[kc][sc]in|mutante|mutation|impf|pandemi|κορ[ωο]ν[αο]ϊό|корона|expert|infe[ck]tion
|
||||
/filter addreplace joinquit * irc_join,irc_part,irc_quit *
|
||||
|
||||
/set irc.look.server_buffer independent
|
||||
|
||||
12
packages/urlwatch-insecure.patch
Normal file
12
packages/urlwatch-insecure.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/lib/urlwatch/storage.py b/lib/urlwatch/storage.py
|
||||
index 3f6160f..03979f0 100644
|
||||
--- a/lib/urlwatch/storage.py
|
||||
+++ b/lib/urlwatch/storage.py
|
||||
@@ -292,7 +292,6 @@ class UrlsBaseFileStorage(BaseTextualFileStorage, metaclass=ABCMeta):
|
||||
shelljob_errors = self.shelljob_security_checks()
|
||||
if shelljob_errors and any(is_shell_job(job) for job in jobs):
|
||||
print(('Removing shell jobs, because %s' % (' and '.join(shelljob_errors),)))
|
||||
- jobs = [job for job in jobs if not is_shell_job(job)]
|
||||
|
||||
return jobs
|
||||
|
||||
Reference in New Issue
Block a user