enforce new flake schema. formatting.
This commit is contained in:
parent
4b0a90e00d
commit
ecf5132cbb
121 changed files with 1606 additions and 1554 deletions
|
|
@ -27,45 +27,48 @@
|
|||
];
|
||||
|
||||
config = {
|
||||
services.matrix-synapse = {
|
||||
enable = true;
|
||||
coturn.enable = true;
|
||||
settings = {
|
||||
registration_shared_secret = "secret";
|
||||
turn_shared_secret = "turn-secret";
|
||||
services = {
|
||||
matrix-synapse = {
|
||||
enable = true;
|
||||
coturn.enable = true;
|
||||
settings = {
|
||||
registration_shared_secret = "secret";
|
||||
turn_shared_secret = "turn-secret";
|
||||
};
|
||||
};
|
||||
|
||||
coturn = {
|
||||
enable = true;
|
||||
no-tls = true;
|
||||
static-auth-secret = "turn-secret";
|
||||
};
|
||||
|
||||
maubot = {
|
||||
enable = true;
|
||||
extraConfigFile = builtins.toString (
|
||||
pkgs.writeText "maubot-extra" ''
|
||||
homeservers:
|
||||
${cfg.settings.server_name}:
|
||||
url: http://127.0.0.1:${builtins.toString cfg.port}
|
||||
secret: ${cfg.settings.registration_shared_secret}
|
||||
admins:
|
||||
alice: password
|
||||
''
|
||||
);
|
||||
};
|
||||
|
||||
livekit.keyFile = keyFile;
|
||||
lk-jwt-service.keyFile = keyFile;
|
||||
|
||||
nginx.enable = true;
|
||||
nginx.virtualHosts."example.com" = {
|
||||
forceSSL = lib.mkForce false;
|
||||
enableACME = lib.mkForce false;
|
||||
};
|
||||
};
|
||||
|
||||
services.coturn = {
|
||||
enable = true;
|
||||
no-tls = true;
|
||||
static-auth-secret = "turn-secret";
|
||||
};
|
||||
|
||||
services.maubot = {
|
||||
enable = true;
|
||||
extraConfigFile = builtins.toString (
|
||||
pkgs.writeText "maubot-extra" ''
|
||||
homeservers:
|
||||
${cfg.settings.server_name}:
|
||||
url: http://127.0.0.1:${builtins.toString cfg.port}
|
||||
secret: ${cfg.settings.registration_shared_secret}
|
||||
admins:
|
||||
alice: password
|
||||
''
|
||||
);
|
||||
};
|
||||
|
||||
services.livekit.keyFile = keyFile;
|
||||
services.lk-jwt-service.keyFile = keyFile;
|
||||
|
||||
services.nginx.enable = true;
|
||||
networking.domain = "example.com";
|
||||
networking.firewall.enable = false; # simplify networking for test
|
||||
|
||||
# Override SSL/ACME requirements for test
|
||||
services.nginx.virtualHosts."example.com".forceSSL = lib.mkForce false;
|
||||
services.nginx.virtualHosts."example.com".enableACME = lib.mkForce false;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue