services.mautrix-discord.environmentFile
File containing environment variables to substitute when copying the configuration
out of Nix store to the services.mautrix-discord.dataDir.
Can be used for storing the secrets without making them available in the Nix store.
For example, you can set services.mautrix-discord.settings.appservice.as_token = "$MAUTRIX_DISCORD_APPSERVICE_AS_TOKEN"
and then specify MAUTRIX_DISCORD_APPSERVICE_AS_TOKEN="{token}" in the environment file.
This value will get substituted into the configuration file as a token.
- Type
null or absolute path- Default
null- Declared
- <nixpkgs/nixos/modules/services/matrix/mautrix-discord.nix>