Sourcehut
services.sourcehut.builds.enable
Whether to enable builds service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.builds.enableWorker
Whether to enable worker for builds.sr.ht
::: {.warning}
For smaller deployments, job runners can be installed alongside the master server
but even if you only build your own software, integration with other services
may cause you to run untrusted builds
(e.g. automatic testing of patches via listssrht).
See https://man.sr.ht/builds.sr.ht/configuration.md#security-model.
:::
.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.builds.group
Group for builds.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"buildsrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.builds.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.builds.images
Images for builds.sr.ht. Each package should be distro.release.arch and point to a /nix/store/package/root.img.qcow2.
Type: attribute set of attribute set of attribute set of package
Default
{ }
Example
(let# Pinning unstable to allow usage with flakes and limit rebuilds.pkgs_unstable = builtins.fetchGit {url = "https://github.com/NixOS/nixpkgs";rev = "ff96a0fa5635770390b184ae74debea75c3fd534";ref = "nixos-unstable";};image_from_nixpkgs = (import ("${pkgs.sourcehut.buildsrht}/lib/images/nixos/image.nix") {pkgs = (import pkgs_unstable {});});in{nixos.unstable.x86_64 = image_from_nixpkgs;})
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.builds.port
Port on which the "builds" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5002
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.builds.postgresql.database
PostgreSQL database name for the builds.sr.ht service,
used if is true
.
Type: string
Default
"builds.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.builds.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-buildsrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.builds.user
User for builds.sr.ht.
Type: string
Default
"buildsrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.enable
Whether to enable sourcehut - git hosting, continuous integration, mailing list, ticket tracking, wiki
and account management services
.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.enable
Whether to enable git service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.fcgiwrap.preforkProcess
Number of fcgiwrap processes to prefork.
Type: signed integer
Default
4
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.group
Group for git.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"gitsrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.package
The git package to use.
Type: package
Default
pkgs.git
Example
gitFull
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.port
Port on which the "git" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5001
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.postgresql.database
PostgreSQL database name for the git.sr.ht service,
used if is true
.
Type: string
Default
"git.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-gitsrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.user
User for git.sr.ht.
Type: string
Default
"gitsrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.webhooks.celeryConfig
Content of the celeryconfig.py
used by the Celery responsible for webhooks.
Type: strings concatenated with "\n"
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.git.webhooks.extraArgs
Extra arguments passed to the Celery responsible for webhooks.
Type: list of string
Default
["--loglevel DEBUG""--pool eventlet""--without-heartbeat"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.cloneBundles
Generate clonebundles (which require more disk space but dramatically speed up cloning large repositories).
Type: boolean
Default
false
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.enable
Whether to enable hg service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.group
Group for hg.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"hgsrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.package
The mercurial package to use.
Type: package
Default
pkgs.mercurial
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.port
Port on which the "hg" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5010
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.postgresql.database
PostgreSQL database name for the hg.sr.ht service,
used if is true
.
Type: string
Default
"hg.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-hgsrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.user
User for hg.sr.ht.
Type: string
Default
"hgsrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.webhooks.celeryConfig
Content of the celeryconfig.py
used by the Celery responsible for webhooks.
Type: strings concatenated with "\n"
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hg.webhooks.extraArgs
Extra arguments passed to the Celery responsible for webhooks.
Type: list of string
Default
["--loglevel DEBUG""--pool eventlet""--without-heartbeat"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hub.enable
Whether to enable hub service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hub.group
Group for hub.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"hubsrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hub.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hub.port
Port on which the "hub" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5014
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hub.postgresql.database
PostgreSQL database name for the hub.sr.ht service,
used if is true
.
Type: string
Default
"hub.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hub.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-hubsrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.hub.user
User for hub.sr.ht.
Type: string
Default
"hubsrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.listenAddress
Address to bind to.
Type: string
Default
"localhost"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.enable
Whether to enable lists service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.group
Group for lists.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"listssrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.port
Port on which the "lists" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5006
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.postgresql.database
PostgreSQL database name for the lists.sr.ht service,
used if is true
.
Type: string
Default
"lists.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.process.celeryConfig
Content of the celeryconfig.py
used by the Celery of listssrht-process
.
Type: strings concatenated with "\n"
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.process.extraArgs
Extra arguments passed to the Celery responsible for processing mails.
Type: list of string
Default
["--loglevel DEBUG""--pool eventlet""--without-heartbeat"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-listssrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.user
User for lists.sr.ht.
Type: string
Default
"listssrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.webhooks.celeryConfig
Content of the celeryconfig.py
used by the Celery responsible for webhooks.
Type: strings concatenated with "\n"
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.lists.webhooks.extraArgs
Extra arguments passed to the Celery responsible for webhooks.
Type: list of string
Default
["--loglevel DEBUG""--pool eventlet""--without-heartbeat"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.man.enable
Whether to enable man service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.man.group
Group for man.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"mansrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.man.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.man.port
Port on which the "man" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5004
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.man.postgresql.database
PostgreSQL database name for the man.sr.ht service,
used if is true
.
Type: string
Default
"man.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.man.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-mansrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.man.user
User for man.sr.ht.
Type: string
Default
"mansrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.meta.enable
Whether to enable meta service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.meta.group
Group for meta.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"metasrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.meta.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.meta.port
Port on which the "meta" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5000
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.meta.postgresql.database
PostgreSQL database name for the meta.sr.ht service,
used if is true
.
Type: string
Default
"meta.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.meta.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-metasrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.meta.user
User for meta.sr.ht.
Type: string
Default
"metasrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.meta.webhooks.celeryConfig
Content of the celeryconfig.py
used by the Celery responsible for webhooks.
Type: strings concatenated with "\n"
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.meta.webhooks.extraArgs
Extra arguments passed to the Celery responsible for webhooks.
Type: list of string
Default
["--loglevel DEBUG""--pool eventlet""--without-heartbeat"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.minio.enable
Whether to enable local minio integration.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.nginx.enable
Whether to enable local nginx integration.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.nginx.virtualHost
Virtual-host configuration merged with all Sourcehut's virtual-hosts.
Type: attribute set
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.pages.enable
Whether to enable pages service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.pages.group
Group for pages.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"pagessrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.pages.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.pages.port
Port on which the "pages" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5112
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.pages.postgresql.database
PostgreSQL database name for the pages.sr.ht service,
used if is true
.
Type: string
Default
"pages.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.pages.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-pagessrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.pages.user
User for pages.sr.ht.
Type: string
Default
"pagessrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.paste.enable
Whether to enable paste service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.paste.group
Group for paste.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"pastesrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.paste.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.paste.port
Port on which the "paste" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5011
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.paste.postgresql.database
PostgreSQL database name for the paste.sr.ht service,
used if is true
.
Type: string
Default
"paste.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.paste.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-pastesrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.paste.user
User for paste.sr.ht.
Type: string
Default
"pastesrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.postfix.enable
Whether to enable local postfix integration.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.postgresql.enable
Whether to enable local postgresql integration.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.redis.enable
Whether to enable local redis integration in a dedicated redis-server.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings
The configuration for the sourcehut network.
Type: attribute set of section of an INI file (attrs of INI atom (null, bool, int, float or string) or a non-empty list of them)
Default
{ }
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".allow-free
Whether to enable nonpaying users to submit builds.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=buildssrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".oauth-client-id
builds.sr.ht's OAuth client id for meta.sr.ht.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".oauth-client-secret
builds.sr.ht's OAuth client secret for meta.sr.ht.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".origin
URL builds.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://builds.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".redis
The Redis connection used for the Celery worker.
Type: string
Default
"redis+socket:///run/redis-sourcehut-buildsrht/redis.sock?virtual_host=2"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht".shell
Scripts used to launch on SSH connection.
/usr/bin/master-shell
on master,
/usr/bin/runner-shell
on runner.
If master and worker are on the same system
set to /usr/bin/runner-shell
.
Type: one of "/usr/bin/master-shell", "/usr/bin/runner-shell"
Default
"/usr/bin/master-shell"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht::worker".bind-address
HTTP bind address for serving local build information/monitoring.
Type: string
Default
"localhost:8080"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht::worker".buildlogs
Path to write build logs.
Type: string
Default
"/var/log/sourcehut/buildsrht-worker"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht::worker".name
Listening address and listening port of the build runner (with HTTP port if not 80).
Type: string
Default
"localhost:5020"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."builds.sr.ht::worker".timeout
Max build duration. See https://golang.org/pkg/time/#ParseDuration.
Type: string
Default
"3m"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=gitsrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".oauth-client-id
git.sr.ht's OAuth client id for meta.sr.ht.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".oauth-client-secret
git.sr.ht's OAuth client secret for meta.sr.ht.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".origin
URL git.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://git.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".outgoing-domain
Outgoing domain.
Type: string
Default
"https://git.localhost.localdomain"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".post-update-script
A post-update script which is installed in every git repo. This setting is propagated to newer and existing repositories.
Type: path
Default
"\${pkgs.sourcehut.gitsrht}/bin/gitsrht-update-hook"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".repos
Path to git repositories on disk. If changing the default, you must ensure that the gitsrht's user as read and write access to it.
Type: string
Default
"/var/lib/sourcehut/gitsrht/repos"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht".webhooks
The Redis connection used for the webhooks worker.
Type: string
Default
"redis+socket:///run/redis-sourcehut-gitsrht/redis.sock?virtual_host=1"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."git.sr.ht::api".internal-ipnet
Set of IP subnets which are permitted to utilize internal API authentication. This should be limited to the subnets from which your *.sr.ht services are running. See .
Type: list of string
Default
["127.0.0.0/8""::1/128"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".changegroup-script
A changegroup script which is installed in every mercurial repo. This setting is propagated to newer and existing repositories.
Type: string
Default
"\${pkgs.sourcehut.hgsrht}/bin/hgsrht-hook-changegroup"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".clone_bundle_threshold
.hg/store size (in MB) past which the nightly job generates clone bundles.
Type: unsigned integer, meaning >=0
Default
50
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=hgsrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".hg_ssh
Path to hg-ssh (if not in $PATH).
Type: string
Default
"\${pkgs.mercurial}/bin/hg-ssh"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".oauth-client-id
hg.sr.ht's OAuth client id for meta.sr.ht.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".oauth-client-secret
hg.sr.ht's OAuth client secret for meta.sr.ht.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".origin
URL hg.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://hg.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".repos
Path to mercurial repositories on disk. If changing the default, you must ensure that the hgsrht's user as read and write access to it.
Type: string
Default
"/var/lib/sourcehut/hgsrht/repos"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".srhtext
Path to the srht mercurial extension (defaults to where the hgsrht code is)
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hg.sr.ht".webhooks
The Redis connection used for the webhooks worker.
Type: string
Default
"redis+socket:///run/redis-sourcehut-hgsrht/redis.sock?virtual_host=1"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hub.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hub.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=hubsrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hub.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hub.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hub.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hub.sr.ht".oauth-client-id
hub.sr.ht's OAuth client id for meta.sr.ht.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hub.sr.ht".oauth-client-secret
hub.sr.ht's OAuth client secret for meta.sr.ht.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."hub.sr.ht".origin
URL hub.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://hub.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".allow-new-lists
Whether to enable creation of new lists.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=listssrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".notify-from
Outgoing email for notifications generated by users.
Type: string
Default
"lists-notify@localhost.localdomain"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".oauth-client-id
lists.sr.ht's OAuth client id for meta.sr.ht.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".oauth-client-secret
lists.sr.ht's OAuth client secret for meta.sr.ht.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".origin
URL lists.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://lists.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".posting-domain
Posting domain.
Type: string
Default
"lists.localhost.localdomain"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".redis
The Redis connection used for the Celery worker.
Type: string
Default
"redis+socket:///run/redis-sourcehut-listssrht/redis.sock?virtual_host=2"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht".webhooks
The Redis connection used for the webhooks worker.
Type: string
Default
"redis+socket:///run/redis-sourcehut-listssrht/redis.sock?virtual_host=1"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht::worker".reject-mimetypes
Comma-delimited list of Content-Types to reject. Messages with Content-Types included in this list are rejected. Multipart messages are always supported, and each part is checked against this list.
Uses fnmatch for wildcard expansion.
Type: list of string
Default
["text/html"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht::worker".reject-url
Reject URL.
Type: string
Default
"https://man.sr.ht/lists.sr.ht/etiquette.md"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht::worker".sock
Path for the lmtp daemon's unix socket. Direct incoming mail to this socket. Alternatively, specify IP:PORT and an SMTP server will be run instead.
Type: string
Default
"/tmp/lists.sr.ht-lmtp.sock"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."lists.sr.ht::worker".sock-group
The lmtp daemon will make the unix socket group-read/write for users in this group.
Type: string
Default
"postfix"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."man.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."man.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=mansrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."man.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."man.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."man.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."man.sr.ht".oauth-client-id
man.sr.ht's OAuth client id for meta.sr.ht.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."man.sr.ht".oauth-client-secret
man.sr.ht's OAuth client secret for meta.sr.ht.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."man.sr.ht".origin
URL man.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://man.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=metasrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht".origin
URL meta.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://meta.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht".webhooks
The Redis connection used for the webhooks worker.
Type: string
Default
"redis+socket:///run/redis-sourcehut-metasrht/redis.sock?virtual_host=1"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht".welcome-emails
Whether to enable sending stock sourcehut welcome emails after signup.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht::aliases"
Aliases for the client IDs of commonly used OAuth clients.
Type: attribute set of signed integer
Default
{ }
Example
{"git.sr.ht" = 12345;}
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht::api".internal-ipnet
Set of IP subnets which are permitted to utilize internal API authentication. This should be limited to the subnets from which your *.sr.ht services are running. See .
Type: list of string
Default
["127.0.0.0/8""::1/128"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht::billing".enabled
Whether to enable the billing system.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht::billing".stripe-public-key
Public key for Stripe. Get your keys at https://dashboard.stripe.com/account/apikeys
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht::billing".stripe-secret-key
An absolute file path (which should be outside the Nix-store) to a secret key for Stripe. Get your keys at https://dashboard.stripe.com/account/apikeys
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht::settings".onboarding-redirect
Where to redirect new users upon registration.
Type: string
Default
"https://meta.localhost.localdomain"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht::settings".registration
Whether to enable public registration.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."meta.sr.ht::settings".user-invites
How many invites each user is issued upon registration (only applicable if open registration is disabled).
Type: unsigned integer, meaning >=0
Default
5
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=pagessrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".gemini-certs
An absolute file path (which should be outside the Nix-store) to Gemini certificates.
Type: null or path
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".max-site-size
Maximum size of any given site (post-gunzip), in MiB.
Type: signed integer
Default
1024
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".oauth-client-id
pages.sr.ht's OAuth client id for meta.sr.ht.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".oauth-client-secret
pages.sr.ht's OAuth client secret for meta.sr.ht.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".origin
URL pages.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://pages.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht".user-domain
Configures the user domain, if enabled. All users are given \<username>.this.domain.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."pages.sr.ht::api".internal-ipnet
Set of IP subnets which are permitted to utilize internal API authentication. This should be limited to the subnets from which your *.sr.ht services are running. See .
Type: list of string
Default
["127.0.0.0/8""::1/128"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."paste.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."paste.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=pastesrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."paste.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."paste.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."paste.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."paste.sr.ht".oauth-client-id
paste.sr.ht's OAuth client id for meta.sr.ht.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."paste.sr.ht".oauth-client-secret
paste.sr.ht's OAuth client secret for meta.sr.ht.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."paste.sr.ht".origin
URL paste.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://paste.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".environment
Values other than "production" adds a banner to each page.
Type: one of "development", "production"
Default
"development"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".global-domain
Global domain name.
Type: string
Example
"example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".network-key
An absolute file path (which should be outside the Nix-store)
to a secret key to encrypt internal messages with. Use srht-keygen network
to
generate this key. It must be consistent between all services and nodes.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".owner-email
Owner's email.
Type: string
Default
"contact@example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".owner-name
Owner's name.
Type: string
Default
"John Doe"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".service-key
An absolute file path (which should be outside the Nix-store)
to a key used for encrypting session cookies. Use srht-keygen service
to
generate the service key. This must be shared between each node of the same
service (e.g. git1.sr.ht and git2.sr.ht), but different services may use
different keys. If you configure all of your services with the same
config.ini, you may use the same service-key for all of them.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".site-blurb
Blurb for your site.
Type: string
Default
"the hacker's forge"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".site-info
The top-level info page for your site.
Type: string
Default
"https://sourcehut.org"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".site-name
The name of your network of sr.ht-based sites.
Type: string
Default
"sourcehut"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."sr.ht".source-url
The source code for your fork of sr.ht.
Type: string
Default
"https://git.sr.ht/~sircmpwn/srht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".api-origin
Origin URL for the API
Type: string
Default
"http://${
}:${toString (
+ 100)}"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".connection-string
SQLAlchemy connection string for the database.
Type: string
Default
"postgresql:///localhost?user=todosrht&host=/run/postgresql"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".debug-host
Address to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".debug-port
Port to bind the debug server to.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".migrate-on-upgrade
Whether to enable automatic migrations on package upgrade.
Type: boolean
Default
true
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".notify-from
Outgoing email for notifications generated by users.
Type: string
Default
"todo-notify@localhost.localdomain"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".oauth-client-id
todo.sr.ht's OAuth client id for meta.sr.ht.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".oauth-client-secret
todo.sr.ht's OAuth client secret for meta.sr.ht.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".origin
URL todo.sr.ht is being served at (protocol://domain)
Type: string
Default
"https://todo.example.com"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht".webhooks
The Redis connection used for the webhooks worker.
Type: string
Default
"redis+socket:///run/redis-sourcehut-todosrht/redis.sock?virtual_host=1"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht::mail".posting-domain
Posting domain.
Type: string
Default
"todo.localhost.localdomain"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht::mail".sock
Path for the lmtp daemon's unix socket. Direct incoming mail to this socket. Alternatively, specify IP:PORT and an SMTP server will be run instead.
Type: string
Default
"/tmp/todo.sr.ht-lmtp.sock"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings."todo.sr.ht::mail".sock-group
The lmtp daemon will make the unix socket group-read/write for users in this group.
Type: string
Default
"postfix"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.error-from
Address sending application exceptions
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.error-to
Address receiving application exceptions
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.pgp-key-id
OpenPGP key identifier.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.pgp-privkey
An absolute file path (which should be outside the Nix-store) to an OpenPGP private key.
Your PGP key information (DO NOT mix up pub and priv here)
You must remove the password from your secret key, if present.
You can do this with gpg --edit-key [key-id]
,
then use the passwd
command and do not enter a new password.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.pgp-pubkey
OpenPGP public key.
Type: path or string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.smtp-from
Outgoing SMTP FROM.
Type: string
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.smtp-host
Outgoing SMTP host.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.smtp-password
Outgoing SMTP password.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.smtp-port
Outgoing SMTP port.
Type: null or 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.mail.smtp-user
Outgoing SMTP user.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.objects.s3-access-key
Access key to the S3-compatible object storage service
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.objects.s3-secret-key
An absolute file path (which should be outside the Nix-store) to the secret key of the S3-compatible object storage service.
Type: null or path
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.objects.s3-upstream
Configure the S3-compatible object storage service.
Type: null or string
Default
null
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.settings.webhooks.private-key
An absolute file path (which should be outside the Nix-store)
to a base64-encoded Ed25519 key for signing webhook payloads.
This should be consistent for all *.sr.ht sites,
as this key will be used to verify signatures
from other sites in your network.
Use the srht-keygen webhook
command to generate a key.
Type: path
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.todo.enable
Whether to enable todo service.
Type: boolean
Default
false
Example
true
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.todo.group
Group for todo.sr.ht. Membership grants access to the Git/Mercurial repositories by default, but not to the config.ini file (where secrets are).
Type: string
Default
"todosrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.todo.gunicorn.extraArgs
Extra arguments passed to Gunicorn.
Type: list of string
Default
["--timeout 120""--workers 1""--log-level=info"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.todo.port
Port on which the "todo" backend should listen.
Type: 16 bit unsigned integer; between 0 and 65535 (both inclusive)
Default
5003
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.todo.postgresql.database
PostgreSQL database name for the todo.sr.ht service,
used if is true
.
Type: string
Default
"todo.sr.ht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.todo.redis.host
The redis host URL. This is used for caching and temporary storage, and must be shared between nodes (e.g. git1.sr.ht and git2.sr.ht), but need not be shared between services. It may be shared between services, however, with no ill effect, if this better suits your infrastructure.
Type: string
Default
"unix:///run/redis-sourcehut-todosrht/redis.sock?db=0"
Example
"redis://shared.wireguard:6379/0"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.todo.user
User for todo.sr.ht.
Type: string
Default
"todosrht"
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.todo.webhooks.celeryConfig
Content of the celeryconfig.py
used by the Celery responsible for webhooks.
Type: strings concatenated with "\n"
Default
""
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut
services.sourcehut.todo.webhooks.extraArgs
Extra arguments passed to the Celery responsible for webhooks.
Type: list of string
Default
["--loglevel DEBUG""--pool eventlet""--without-heartbeat"]
Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/misc/sourcehut