Skip to content

Dex

services.dex.enable

Whether to enable the OpenID Connect and OAuth2 identity provider. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/dex.nix

services.dex.environmentFile

Environment file (see systemd.exec(5) "EnvironmentFile=" section for the syntax) to define variables for dex. This option can be used to safely include secret keys into the dex configuration.

Type: null or path

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/dex.nix

services.dex.settings

The available options can be found in the example configuration.

It's also possible to refer to environment variables (defined in services.dex.environmentFile) using the syntax $VARIABLE_NAME.

Type: YAML value

Default

{ }

Example

{# External urlissuer = "http://127.0.0.1:5556/dex";storage = {type = "postgres";config.host = "/var/run/postgres";};web = {http = "127.0.0.1:5556";};enablePasswordDB = true;staticClients = [{id = "oidcclient";name = "Client";redirectURIs = [ "https://example.com/callback" ];secretFile = "/etc/dex/oidcclient"; # The content ofsecretFilewill be written into to the config assecret. } ]; }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/web-apps/dex.nix