@ -110,6 +110,15 @@ in
'' ;
} ;
} ;
options . app_service_api . database = {
connection_string = lib . mkOption {
type = lib . types . str ;
default = " f i l e : f e d e r a t i o n a p i . d b " ;
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 = " f i l e : f e d e r a t i o n a p i . d b " ;
description = ''
Database for the Federation API .
'' ;
} ;
} ;
options . key_server . database = {
connection_string = lib . mkOption {
type = lib . types . str ;
default = " f i l e : k e y s e r v e r . d b " ;
description = ''
Database for the Key Server ( for end-to-end encryption ) .
'' ;
} ;
} ;
options . media_api = {
database = {
connection_string = lib . mkOption {
type = lib . types . str ;
default = " f i l e : m e d i a a p i . d b " ;
description = ''
Database for the Media API .
'' ;
} ;
} ;
base_path = lib . mkOption {
type = lib . types . str ;
default = " ${ workingDir } / m e d i a _ s t o r e " ;
description = ''
Storage path for uploaded media .
'' ;
} ;
} ;
options . room_server . database = {
connection_string = lib . mkOption {
type = lib . types . str ;
default = " f i l e : r o o m s e r v e r . d b " ;
description = ''
Database for the Room Server .
'' ;
} ;
} ;
options . sync_api . database = {
connection_string = lib . mkOption {
type = lib . types . str ;
default = " f i l e : s y n c s e r v e r . d b " ;
description = ''
Database for the Sync API .
'' ;
} ;
} ;
options . user_api = {
account_database = {
connection_string = lib . mkOption {
type = lib . types . str ;
default = " f i l e : u s e r a p i _ a c c o u n t s . d b " ;
description = ''
Database for the User API , accounts .
'' ;
} ;
} ;
device_database = {
connection_string = lib . mkOption {
type = lib . types . str ;
default = " f i l e : u s e r a p i _ d e v i c e s . d b " ;
description = ''
Database for the User API , devices .
'' ;
} ;
} ;
} ;
options . mscs = {
database = {
connection_string = lib . mkOption {
type = lib . types . str ;
default = " f i l e : m s c s . d b " ;
description = ''
Database for exerimental MSC's .
'' ;
} ;
} ;
} ;
} ;
default = { } ;
description = ''