Skip to content

Commit

Permalink
upgrade synapse and colmena
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Nov 15, 2024
1 parent 121c66a commit edb0c7d
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 26 deletions.
123 changes: 115 additions & 8 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
description = "Nevarro Infrastructure NixOS deployments";
inputs = {
colmena.url = "github:zhaofengli/colmena";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
mineshspc = {
Expand All @@ -15,8 +16,9 @@
};
};

outputs = inputs@{ nixpkgs, flake-utils, ... }:
outputs = inputs@{ self, colmena, nixpkgs, flake-utils, ... }:
{
colmenaHive = colmena.lib.makeHive self.outputs.colmena;
colmena = import ./nixos/colmena.nix (inputs // {
terraform-outputs = nixpkgs.lib.importJSON ./terraform-output.json;
});
Expand All @@ -30,7 +32,7 @@
devShells.default = pkgs.mkShell {
packages = with pkgs; [
cargo
colmena
colmena.packages.${system}.colmena
git-crypt
openssl
pre-commit
Expand Down
6 changes: 3 additions & 3 deletions nixos/colmena.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ in {
matrix-synapse-unwrapped =
super.matrix-synapse-unwrapped.overridePythonAttrs (old: rec {
pname = "matrix-synapse";
version = "1.118.0";
version = "1.119.0";

src = super.fetchFromGitHub {
owner = "element-hq";
repo = "synapse";
rev = "v${version}";
hash = "sha256-dMa1L1MYzt/XfCD8hGt+WupAwl5l4zwVcj5mQ8KtTp8=";
hash = "sha256-+3FrxSfQteIga5uiRNzAlV+xNESB9PUX/UkkL6UMETQ=";
};

cargoDeps = super.rustPackages.rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-FJaj5T2wMIn/A0JNUGpXyNtPvXIAF8Ivkej4vS1S3dA=";
hash = "sha256-c/19RaBmtfKkFFQyDBwH+yqHp4YNQSqCu23WYbpOc98=";
};

doInstallCheck = false;
Expand Down
2 changes: 0 additions & 2 deletions nixos/hosts/matrix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
keyFor "matrix/shared-secret-auth/nevarro.space" "matrix-synapse";
nevarro_space_cleanup_synapse_environment_file =
keyFor "matrix/cleanup-synapse/nevarro.space" "root";
nevarro_space_sliding_sync_environment_file =
keyFor "matrix/sliding-sync/nevarro.space" "root";

# App Service Secrets
appservice_login_shared_secret_yaml = {
Expand Down
11 changes: 0 additions & 11 deletions nixos/modules/services/matrix/synapse/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -331,17 +331,6 @@ in {
'';
};

# Run the sliding-sync proxy.
services.matrix-sliding-sync = {
enable = true;
createDatabase = true;
environmentFile = "/run/keys/nevarro_space_sliding_sync_environment_file";
settings = {
SYNCV3_SERVER = "https://matrix.nevarro.space";
SYNCV3_BINDADDR = "0.0.0.0:8012";
};
};

# Ensure that Redis is setup for Synapse.
services.redis.servers."".enable = true;

Expand Down

0 comments on commit edb0c7d

Please sign in to comment.