From d1d81f1866aa2449cbb2fabd229ac867a3f3e90b Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Fri, 14 Apr 2023 08:04:37 +0200 Subject: [PATCH 1/2] nixos/nitter: add new upstream options --- nixos/modules/services/misc/nitter.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/nixos/modules/services/misc/nitter.nix b/nixos/modules/services/misc/nitter.nix index 2d0d91f95985..cbe26dc1f9bc 100644 --- a/nixos/modules/services/misc/nitter.nix +++ b/nixos/modules/services/misc/nitter.nix @@ -155,6 +155,22 @@ in description = lib.mdDoc "Use base64 encoding for proxied media URLs."; }; + enableRSS = mkEnableOption (lib.mdDoc "RSS feeds") // { default = true; }; + + enableDebug = mkEnableOption (lib.mdDoc "request logs and debug endpoints"); + + proxy = mkOption { + type = types.nullOr types.str; + default = null; + description = lib.mdDoc "URL to a HTTP/HTTPS proxy."; + }; + + proxyAuth = mkOption { + type = types.nullOr types.str; + default = null; + description = lib.mdDoc "Credentials for proxy."; + }; + tokenCount = mkOption { type = types.int; default = 10; @@ -275,6 +291,12 @@ in default = false; description = lib.mdDoc "Hide tweet replies."; }; + + squareAvatars = mkOption { + type = types.bool; + default = false; + description = lib.mdDoc "Square profile pictures."; + }; }; settings = mkOption { From 1ab4e66b791834e7aff659f0a781075f4b17421c Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Fri, 14 Apr 2023 08:04:49 +0200 Subject: [PATCH 2/2] nixos/nitter: remove replaceInstagram option --- nixos/modules/services/misc/nitter.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/misc/nitter.nix b/nixos/modules/services/misc/nitter.nix index cbe26dc1f9bc..d00efe3dd485 100644 --- a/nixos/modules/services/misc/nitter.nix +++ b/nixos/modules/services/misc/nitter.nix @@ -45,6 +45,11 @@ let ''; in { + imports = [ + # https://github.com/zedeus/nitter/pull/772 + (mkRemovedOptionModule [ "services" "nitter" "replaceInstagram" ] "Nitter no longer supports this option as Bibliogram has been discontinued.") + ]; + options = { services.nitter = { enable = mkEnableOption (lib.mdDoc "Nitter"); @@ -208,12 +213,6 @@ in description = lib.mdDoc "Replace Reddit links with links to this instance (blank to disable)."; }; - replaceInstagram = mkOption { - type = types.str; - default = ""; - description = lib.mdDoc "Replace Instagram links with links to this instance (blank to disable)."; - }; - mp4Playback = mkOption { type = types.bool; default = true;