From 5828af9fc19e18dc85e49fcc1a251a7eb25d909c Mon Sep 17 00:00:00 2001 From: Max Audron Date: Fri, 11 Aug 2023 16:51:35 +0200 Subject: init --- modules/matrix/options.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 modules/matrix/options.nix (limited to 'modules/matrix/options.nix') 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 + ''; + }; + }; + }; +} -- cgit v1.2.3