diff options
Diffstat (limited to 'nixos/modules/services/misc/nitter.nix')
-rw-r--r-- | nixos/modules/services/misc/nitter.nix | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/nitter.nix b/nixos/modules/services/misc/nitter.nix index 9e6ae189660..77f5459d117 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"); @@ -155,6 +160,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.str; + default = ""; + description = lib.mdDoc "URL to a HTTP/HTTPS proxy."; + }; + + proxyAuth = mkOption { + type = types.str; + default = ""; + description = lib.mdDoc "Credentials for proxy."; + }; + tokenCount = mkOption { type = types.int; default = 10; @@ -185,10 +206,11 @@ in description = lib.mdDoc "Replace YouTube links with links to this instance (blank to disable)."; }; - replaceInstagram = mkOption { + replaceReddit = mkOption { type = types.str; default = ""; - description = lib.mdDoc "Replace Instagram links with links to this instance (blank to disable)."; + example = "teddit.net"; + description = lib.mdDoc "Replace Reddit links with links to this instance (blank to disable)."; }; mp4Playback = mkOption { @@ -268,6 +290,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 { |