diff --git a/modules/cloud/conduit/default.nix b/modules/cloud/conduit/default.nix index 5651962..c024004 100644 --- a/modules/cloud/conduit/default.nix +++ b/modules/cloud/conduit/default.nix @@ -8,6 +8,11 @@ with lib; options.cloud.conduit = { enable = mkEnableOption "Enable the conduit server"; + package = mkOption { + type = types.package; + default = pkgs.matrix-conduit; + }; + host = mkOption { type = types.str; default = "m.nkagami.me"; @@ -30,6 +35,7 @@ with lib; }; config.services.matrix-conduit = mkIf cfg.enable { + inherit (cfg) package; enable = true; settings.global = { diff --git a/nki-personal-do/configuration.nix b/nki-personal-do/configuration.nix index 4fa7bcb..07edfe0 100644 --- a/nki-personal-do/configuration.nix +++ b/nki-personal-do/configuration.nix @@ -58,6 +58,22 @@ }; cloud.traefik.certsDumper.enable = true; cloud.conduit.enable = true; + cloud.conduit.package = pkgs.matrix-conduit.overrideAttrs (old: rec { + version = "0.4.0"; + + src = pkgs.fetchFromGitLab { + owner = "famedly"; + repo = "conduit"; + rev = "v${version}"; + sha256 = "sha256-QTXDIvGz12ZxsWmPiMiJ8mBUWoJ2wnaeTZdXcwBh35o="; + }; + + cargoDeps = old.cargoDeps.overrideAttrs (_old: { + inherit src version; + outputHash = "sha256-tILjIR3rFDfq5aMblGE/vikttXbX7qQ2W7e017knntw="; + }); + + }); # Navidrome back to the PC cloud.traefik.hosts.navidrome = {