aboutsummaryrefslogtreecommitdiff
path: root/modules/matrix/options.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/matrix/options.nix')
-rw-r--r--modules/matrix/options.nix38
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
+ '';
+ };
+ };
+ };
+}