nixos/middleman: Add self-hosted Paseo relay

Package paseo-relay and add a small `my.paseo-relay` module running it
as a single node without Erlang distribution. Publish it on
`paseo-relay.nul.ie` so Paseo daemons and the app can use our own
relay instead of the hosted one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 23:48:19 +00:00
co-authored by Claude Opus 5.5
parent f567a43bc0
commit 5af71ea231
8 changed files with 134 additions and 3 deletions
+30
View File
@@ -0,0 +1,30 @@
{ lib, beam, fetchFromGitHub, ... }:
let
beamPackages = beam.packages.erlang_29.overrideScope (final: prev: {
elixir = prev.elixir_1_20;
});
in
beamPackages.mixRelease rec {
pname = "paseo-relay";
version = "0.1.0-unstable-2026-10-28";
src = fetchFromGitHub {
owner = "getpaseo";
repo = "paseo-relay";
rev = "5f4b7636af41a85ef20200c0b7e99dd1ea2ee1f2";
hash = "sha256-F4PQg5vU9sI3d9XWukbINdBmhbfcehBzeUVxPKZ06Jg=";
};
mixFodDeps = beamPackages.fetchMixDeps {
pname = "mix-deps-${pname}";
inherit src version;
hash = "sha256-3J2C4XGqjdM0TYf+Vkv5/AY59tiKLVX81Gxrs9pvKuY=";
};
meta = {
description = "WebSocket relay for Paseo daemons and clients";
homepage = "https://github.com/getpaseo/paseo-relay";
license = lib.licenses.asl20;
mainProgram = "paseo_relay";
};
}