Skip to content

Gogs

services.gogs.appName

Application name. Type: string

Default

"Gogs: Go Git Service"

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

services.gogs.cookieSecure

Marks session cookies as "secure" as a hint for browsers to only send them via HTTPS. This option is recommend, if Gogs is being served over HTTPS.

Type: boolean

Default

false

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

services.gogs.database.host

Database host address. Type: string

Default

"127.0.0.1"

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

services.gogs.database.name

Database name. Type: string

Default

"gogs"

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

services.gogs.database.password

The password corresponding to {option}database.user. Warning: this is stored in cleartext in the Nix store! Use {option}database.passwordFile instead.

Type: string

Default

""

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

services.gogs.database.passwordFile

A file containing the password corresponding to {option}database.user.

Type: null or path

Default

null

Example

"/run/keys/gogs-dbpassword"

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

services.gogs.database.path

Path to the sqlite3 database file. Type: string

Default

"${config.services.gogs.stateDir}/data/gogs.db"

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

services.gogs.database.port

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

Default

3306

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

services.gogs.database.type

Database engine to use. Type: one of "sqlite3", "mysql", "postgres"

Default

"sqlite3"

Example

"mysql"

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

services.gogs.database.user

Database user. Type: string

Default

"gogs"

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

services.gogs.domain

Domain name of your server. Type: string

Default

"localhost"

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

services.gogs.enable

Enable Go Git Service. Type: boolean

Default

false

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

services.gogs.extraConfig

Configuration lines appended to the generated Gogs configuration file. Type: string

Default

""

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

services.gogs.group

Group account under which Gogs runs. Type: string

Default

"gogs"

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

services.gogs.httpAddress

HTTP listen address. Type: string

Default

"0.0.0.0"

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

services.gogs.httpPort

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

Default

3000

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

services.gogs.repositoryRoot

Path to the git repositories. Type: string

Default

"${config.services.gogs.stateDir}/repositories"

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

services.gogs.rootUrl

Full public URL of Gogs server. Type: string

Default

"http://localhost:3000/"

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

services.gogs.stateDir

Gogs data directory. Type: string

Default

"/var/lib/gogs"

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

services.gogs.useWizard

Do not generate a configuration and use Gogs' installation wizard instead. The first registered user will be administrator. Type: boolean

Default

false

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

services.gogs.user

User account under which Gogs runs. Type: string

Default

"gogs"

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