get conduit running

This commit is contained in:
Schrottkatze 2023-05-21 14:51:02 +02:00
parent 0980edd187
commit 928f970d55
4 changed files with 25 additions and 186 deletions

View file

@ -1,6 +1,5 @@
{ config
, pkgs
, inputs
, pkgsUnstable
, ...
}:
@ -8,7 +7,7 @@ let
# You'll need to edit these values
# The hostname that will appear in your user and room IDs
server_name = "matrix.katzen.cafe";
server_name = "katzen.cafe";
# The hostname that Conduit actually runs on
#
@ -24,14 +23,14 @@ let
# These ones you can leave alone
# Build a dervation that stores the content of `${server_name}/.well-known/matrix/server`
well_known_server = pkgs.writeText "well-known-matrix-server" ''
well_known_server = pkgsUnstable.writeText "well-known-matrix-server" ''
{
"m.server": "${matrix_hostname}"
}
'';
# Build a dervation that stores the content of `${server_name}/.well-known/matrix/client`
well_known_client = pkgs.writeText "well-known-matrix-client" ''
well_known_client = pkgsUnstable.writeText "well-known-matrix-client" ''
{
"m.homeserver": {
"base_url": "https://${matrix_hostname}"
@ -46,11 +45,12 @@ in
enable = true;
# This causes NixOS to use the flake defined in this repository instead of
# the build of Conduit built into nixpkgs.
package = inputs.conduit.packages.${pkgs.system}.default;
# the build of Conduit built into nixpkgsUnstable.
package = pkgsUnstable.matrix-conduit;
settings.global = {
inherit server_name;
allow_registration = false;
};
};

View file

@ -35,14 +35,14 @@
group = "murmur";
keyType = "rsa4096";
};
"prosody.katzen.cafe" = {
group = "prosody";
keyType = "rsa4096";
extraDomainNames = [
"uploads.prosody.katzen.cafe"
"conference.prosody.katzen.cafe"
];
};
# "prosody.katzen.cafe" = {
# group = "prosody";
# keyType = "rsa4096";
# extraDomainNames = [
# "uploads.prosody.katzen.cafe"
# "conference.prosody.katzen.cafe"
# ];
# };
};
};
services.nginx = {