summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-08-12 14:32:38 -0600
committerAlejandro Soto <alejandro@34project.org>2024-08-12 18:11:48 -0600
commitaeeb440774eba726a3abc17052546b1ccb8a35b3 (patch)
tree5334a0ef828170801c5ef6e86f7b73c65514ecf9
parent107f24b24c390214c3944b29b49ba76de694d8cf (diff)
sys/conduit: switch to conduwuit
Diffstat (limited to '')
-rw-r--r--flake.nix7
-rw-r--r--sys/conduit/default.nix7
2 files changed, 13 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 0be5c2a..edc43e1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -35,6 +35,12 @@
};
vpsadminos.url = "github:vpsfreecz/vpsadminos";
+
+ conduwuit = {
+ url = "github:girlbossceo/conduwuit";
+ #FIXME: PodrĂ¡ volver a "nixpkgs" una vez que rocksdb.enableLiburing llegue a stable
+ inputs.nixpkgs.follows = "unstable";
+ };
};
outputs =
@@ -49,6 +55,7 @@
, flake-utils
, lanzaboote
, vpsadminos
+ , conduwuit
}:
let
system = "x86_64-linux";
diff --git a/sys/conduit/default.nix b/sys/conduit/default.nix
index b3a03c4..1d59469 100644
--- a/sys/conduit/default.nix
+++ b/sys/conduit/default.nix
@@ -1,4 +1,4 @@
-{ config, lib, ... }:
+{ config, flakes, lib, pkgs, ... }:
with lib; let
cfg = config.local.conduit;
@@ -23,6 +23,8 @@ in
services.matrix-conduit = {
enable = true;
+ package = flakes.conduwuit.packages.${pkgs.system}.default;
+
settings.global = {
port = cfg.listenPort;
address = cfg.listenAddress;
@@ -33,6 +35,9 @@ in
allow_encryption = true;
allow_federation = true;
allow_registration = false;
+ enable_lightning_bolt = false;
+ allow_check_for_updates = true;
+ new_user_displayname_suffix = "";
};
};
};