Matrix configuration #13
|
@ -1,18 +1,19 @@
|
||||||
nixos domain option nixos domain option
|
|||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
domain = "staging.ifsr.de";
|
domainServer = "matrix.${config.fsr.domain}";
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
domainServer = "matrix.${domain}";
|
domainClient = "chat.${config.fsr.domain}";
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
domainClient = "chat.${domain}";
|
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
clientConfig = {
|
clientConfig = {
|
||||||
"m.homeserver" = {
|
"m.homeserver" = {
|
||||||
base_url = "https://${domainServer}:443";
|
base_url = "https://${domainServer}:443";
|
||||||
server_name = domainServer;
|
server_name = domainServer;
|
||||||
};
|
};
|
||||||
"m.identity_server" = {};
|
"m.identity_server" = { };
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
};
|
};
|
||||||
serverConfig = {
|
serverConfig = {
|
||||||
"m.server" = "${domainServer}:443";
|
"m.server" = "${domainServer}:443";
|
||||||
};
|
};
|
||||||
|
|
||||||
nixos domain option nixos domain option
|
|||||||
mkWellKnown = data: ''
|
mkWellKnown = data: ''
|
||||||
add_header Content-Type application/json;
|
add_header Content-Type application/json;
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
@ -20,12 +21,12 @@ let
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
#sops.secrets = {
|
# sops.secrets = {
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# synapse_registration_secret = {
|
# synapse_registration_secret = {
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# owner = "matrix-synapse";
|
# owner = "matrix-synapse";
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# group = "matrix-synapse";
|
# group = "matrix-synapse";
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# };
|
# };
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
#};
|
# };
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
|
|
||||||
services = {
|
services = {
|
||||||
postgresql = {
|
postgresql = {
|
||||||
|
@ -92,13 +93,13 @@ in
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# TODO: ldap
|
# TODO: ldap
|
||||||
registration_shared_secret = "registration_shared_secret";
|
registration_shared_secret = "registration_shared_secret";
|
||||||
};
|
};
|
||||||
# extraConfigFiles = [
|
# extraConfigFiles = [
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# (pkgs.writeTextFile {
|
# (pkgs.writeTextFile {
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# name = "matrix-synapse-extra-config.yml";
|
# name = "matrix-synapse-extra-config.yml";
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# text = ''
|
# text = ''
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# '';
|
# '';
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# })
|
# })
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
# ];
|
# ];
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
nixos domain option nixos domain option
nixos domain option nixos domain option
|
nixos domain option