diff options
| author | Max Audron <audron@cocaine.farm> | 2023-08-11 16:51:35 +0200 |
|---|---|---|
| committer | Max Audron <audron@cocaine.farm> | 2023-08-11 16:51:35 +0200 |
| commit | 5828af9fc19e18dc85e49fcc1a251a7eb25d909c (patch) | |
| tree | c70c3e52237c08d3fdcb2f1269c524c25e3feeb8 /modules/matrix/options.nix | |
init
Diffstat (limited to 'modules/matrix/options.nix')
| -rw-r--r-- | modules/matrix/options.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/matrix/options.nix b/modules/matrix/options.nix new file mode 100644 index 0000000..61a9201 --- /dev/null +++ b/modules/matrix/options.nix @@ -0,0 +1,38 @@ +{ config, lib, pkgs, ... }: + +with lib; +{ + options = { + services.matrix = { + server_name = mkOption { + type = types.str; + example = "example.com"; + description = lib.mdDoc '' + The hostname that will appear in your user and room IDs + ''; + }; + + matrix_hostname = mkOption { + type = types.str; + default = "matrix.${config.services.matrix.server_name}"; + example = "matrix.example.com"; + description = lib.mdDoc '' + The hostname that Conduit actually runs on + + This can be the same as `server_name` if you want. This is only necessary + when Conduit is running on a different machine than the one hosting your + root domain. This configuration also assumes this is all running on a single + machine, some tweaks will need to be made if this is not the case. + ''; + }; + + admin_email = mkOption { + type = types.str; + example = "admin@example.com"; + description = lib.mdDoc '' + An admin email for TLS certificate notifications + ''; + }; + }; + }; +} |
