diff --git a/configs/urlwatch.nix b/configs/urlwatch.nix index be783d3..d2234be 100644 --- a/configs/urlwatch.nix +++ b/configs/urlwatch.nix @@ -10,10 +10,26 @@ let { name = "Corona-Verordnung"; url = "https://www.berlin.de/corona/massnahmen/verordnung/"; + filter = [ + { + css = "[role=main]"; + } + "html2text" + "strip" + ]; + } + { + name = "Christian-Metz-Blamage"; + url = "https://www.deutschlandfunk.de/meine-nacht-schlaeft-nicht-pflanze-mich-nicht-in-dein-herz.700.de.html?dram:article_id=486475"; + filter = [ + { + element-by-id = "content"; + } + ]; } ]; - configFile = pkgs.writeJSON "urlwatch.yaml" { + configFile = pkgs.writeText "urlwatch.yaml" (builtins.toJSON { display = { error = true; new = true; @@ -40,18 +56,18 @@ let color = true; enabled = true; }; - telegram = { - enabled = false; - bot_token = lib.strings.fileContents ; - chat_id = [ "18980945" ]; - }; + # telegram = { + # enabled = false; + # bot_token = lib.strings.fileContents ; + # chat_id = [ "18980945" ]; + # }; # text = { # details = true; # footer = true; # line_length = 75; # }; }; - }; + }); in { users.extraUsers.urlwatch = { diff --git a/systems/makanek/configuration.nix b/systems/makanek/configuration.nix index d0c73a4..401c813 100644 --- a/systems/makanek/configuration.nix +++ b/systems/makanek/configuration.nix @@ -11,6 +11,7 @@ in + ]; diff --git a/systems/toum/configuration.nix b/systems/toum/configuration.nix index 26cb38b..16019e5 100644 --- a/systems/toum/configuration.nix +++ b/systems/toum/configuration.nix @@ -16,7 +16,6 @@ in { - {