Skip to content

Nitter

services.nitter.cache.listMinutes

How long to cache list info (not the tweets, so keep it high). Type: signed integer

Default

240

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.cache.redisConnections

Redis connection pool size. Type: signed integer

Default

20

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.cache.redisHost

Redis host. Type: string

Default

"localhost"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.cache.redisMaxConnections

Maximum number of connections to Redis.

New connections are opened when none are available, but if the pool size goes above this, they are closed when released, do not worry about this unless you receive tons of requests per second.

Type: signed integer

Default

30

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.cache.redisPort

Redis port. Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

6379

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.cache.rssMinutes

How long to cache RSS queries. Type: signed integer

Default

10

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.config.base64Media

Use base64 encoding for proxied media URLs. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.config.enableDebug

Whether to enable request logs and debug endpoints. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.config.enableRSS

Whether to enable RSS feeds. Type: boolean

Default

true

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.config.proxy

URL to a HTTP/HTTPS proxy. Type: string

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.config.proxyAuth

Credentials for proxy. Type: string

Default

""

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.config.tokenCount

Minimum amount of usable tokens.

Tokens are used to authorize API requests, but they expire after ~1 hour, and have a limit of 187 requests. The limit gets reset every 15 minutes, and the pool is filled up so there is always at least tokenCount usable tokens. Only increase this if you receive major bursts all the time.

Type: signed integer

Default

10

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.enable

Whether to enable Nitter, an alternative Twitter front-end. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.guestAccounts

Path to the guest accounts file.

This file contains a list of guest accounts that can be used to access the instance without logging in. The file is in JSONL format, where each line is a JSON object with the following fields:

{"oauth_token":"some_token","oauth_token_secret":"some_secret_key"}

See https://github.com/zedeus/nitter/wiki/Guest-Account-Branch-Deployment for more information on guest accounts and how to generate them.

Type: path

Default

"/var/lib/nitter/guest_accounts.jsonl"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.openFirewall

Open ports in the firewall for Nitter web interface. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.package

The nitter package to use. Type: package

Default

pkgs.nitter

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.autoplayGifs

Autoplay GIFs. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.bidiSupport

Support bidirectional text (makes clicking on tweets harder). Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.hideBanner

Hide profile banner. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.hidePins

Hide pinned tweets. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.hideReplies

Hide tweet replies. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.hideTweetStats

Hide tweet stats (replies, retweets, likes). Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.hlsPlayback

Enable HLS video streaming (requires JavaScript). Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.infiniteScroll

Infinite scrolling (requires JavaScript, experimental!). Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.mp4Playback

Enable MP4 video playback. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.muteVideos

Mute videos by default. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.proxyVideos

Proxy video streaming through the server (might be slow). Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.replaceReddit

Replace Reddit links with links to this instance (blank to disable). Type: string

Default

""

Example

"teddit.net"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.replaceTwitter

Replace Twitter links with links to this instance (blank to disable). Type: string

Default

""

Example

"nitter.net"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.replaceYouTube

Replace YouTube links with links to this instance (blank to disable). Type: string

Default

""

Example

"piped.kavin.rocks"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.squareAvatars

Square profile pictures. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.stickyProfile

Make profile sidebar stick to top. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.preferences.theme

Instance theme. Type: string

Default

"Nitter"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.redisCreateLocally

Configure local Redis server for Nitter. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.server.address

The address to listen on. Type: string

Default

"0.0.0.0"

Example

"127.0.0.1"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.server.hostname

Hostname of the instance. Type: string

Default

"localhost"

Example

"nitter.net"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.server.httpMaxConnections

Maximum number of HTTP connections. Type: signed integer

Default

100

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.server.https

Set secure attribute on cookies. Keep it disabled to enable cookies when not using HTTPS. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.server.port

The port to listen on. Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)

Default

8080

Example

8000

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.server.staticDir

Path to the static files directory. Type: path

Default

"${config.services.nitter.package}/share/nitter/public"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.server.title

Title of the instance. Type: string

Default

"nitter"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix

services.nitter.settings

Add settings here to override NixOS module generated settings.

Check the official repository for the available settings: https://github.com/zedeus/nitter/blob/master/nitter.example.conf

Type: attribute set

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/nitter.nix