Skip to content

Pinnwand

services.pinnwand.enable

Whether to enable Pinnwand, a pastebin. Type: boolean

Default

false

Example

true

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

services.pinnwand.port

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

Default

8000

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

services.pinnwand.settings

Your {file}pinnwand.toml as a Nix attribute set. Look up possible options in the documentation.

Type: TOML value

Default

{ }

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

services.pinnwand.settings.database_uri

Database URI compatible with [SQLAlchemyhttps://docs.sqlalchemy.org/en/14/core/engines.html#database-urls].

Additional packages may need to be introduced into the environment for certain databases.

Type: string

Default

"sqlite:////var/lib/pinnwand/pinnwand.db"

Example

"sqlite:///:memory"

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

services.pinnwand.settings.footer

The footer in raw HTML.

Type: string

Default

'' View <a href="//github.com/supakeen/pinnwand" target="_BLANK">source code</a>, the <a href="/removal">removal</a> or <a href="/expiry">expiry</a> stories, or read the <a href="/about">about</a> page.''

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

services.pinnwand.settings.paste_help

Raw HTML help text shown in the header area.

Type: string

Default

`#!nix ''

Welcome to pinnwand, this site is a pastebin. It allows you to share code with others. If you write code in the text area below and press the paste button you will be given a link you can share with others so they can view your code as well.

People with the link can view your pasted code, only you can remove your paste and it expires automatically. Note that anyone could guess the URI to your paste so don't rely on it being private.

''`

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

services.pinnwand.settings.paste_size

Maximum size of a paste in bytes.

Type: positive integer, meaning >0

Default

262144

Example

524288

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