diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-03-08 12:51:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-08 12:51:04 +0100 |
commit | e9183df241a6207deb71f8939af2aa7db96f8fbd (patch) | |
tree | 43c7a3a206635fb1ea036198589e57874b13904e /nixos/modules/services | |
parent | 1a0b8047999f117830a2c4b63362a807b49ca44e (diff) | |
parent | 5a6b36e498bbc5de5be9a5b85f66f31b6beaaf82 (diff) | |
download | nixpkgs-e9183df241a6207deb71f8939af2aa7db96f8fbd.tar nixpkgs-e9183df241a6207deb71f8939af2aa7db96f8fbd.tar.gz nixpkgs-e9183df241a6207deb71f8939af2aa7db96f8fbd.tar.bz2 nixpkgs-e9183df241a6207deb71f8939af2aa7db96f8fbd.tar.lz nixpkgs-e9183df241a6207deb71f8939af2aa7db96f8fbd.tar.xz nixpkgs-e9183df241a6207deb71f8939af2aa7db96f8fbd.tar.zst nixpkgs-e9183df241a6207deb71f8939af2aa7db96f8fbd.zip |
Merge pull request #157923 from tim-tx/update/dendrite-0.6.0
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/misc/dendrite.nix | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/dendrite.nix b/nixos/modules/services/misc/dendrite.nix index c967fc3a362..b2885b09415 100644 --- a/nixos/modules/services/misc/dendrite.nix +++ b/nixos/modules/services/misc/dendrite.nix @@ -110,6 +110,15 @@ in ''; }; }; + options.app_service_api.database = { + connection_string = lib.mkOption { + type = lib.types.str; + default = "file:federationapi.db"; + description = '' + Database for the Appservice API. + ''; + }; + }; options.client_api = { registration_disabled = lib.mkOption { type = lib.types.bool; @@ -120,6 +129,91 @@ in ''; }; }; + options.federation_api.database = { + connection_string = lib.mkOption { + type = lib.types.str; + default = "file:federationapi.db"; + description = '' + Database for the Federation API. + ''; + }; + }; + options.key_server.database = { + connection_string = lib.mkOption { + type = lib.types.str; + default = "file:keyserver.db"; + description = '' + Database for the Key Server (for end-to-end encryption). + ''; + }; + }; + options.media_api = { + database = { + connection_string = lib.mkOption { + type = lib.types.str; + default = "file:mediaapi.db"; + description = '' + Database for the Media API. + ''; + }; + }; + base_path = lib.mkOption { + type = lib.types.str; + default = "${workingDir}/media_store"; + description = '' + Storage path for uploaded media. + ''; + }; + }; + options.room_server.database = { + connection_string = lib.mkOption { + type = lib.types.str; + default = "file:roomserver.db"; + description = '' + Database for the Room Server. + ''; + }; + }; + options.sync_api.database = { + connection_string = lib.mkOption { + type = lib.types.str; + default = "file:syncserver.db"; + description = '' + Database for the Sync API. + ''; + }; + }; + options.user_api = { + account_database = { + connection_string = lib.mkOption { + type = lib.types.str; + default = "file:userapi_accounts.db"; + description = '' + Database for the User API, accounts. + ''; + }; + }; + device_database = { + connection_string = lib.mkOption { + type = lib.types.str; + default = "file:userapi_devices.db"; + description = '' + Database for the User API, devices. + ''; + }; + }; + }; + options.mscs = { + database = { + connection_string = lib.mkOption { + type = lib.types.str; + default = "file:mscs.db"; + description = '' + Database for exerimental MSC's. + ''; + }; + }; + }; }; default = { }; description = '' |