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:
@@ -7,6 +7,7 @@ in
|
||||
monocraft' = callPackage ./monocraft.nix { };
|
||||
vfio-pci-bind = callPackage ./vfio-pci-bind.nix { };
|
||||
librespeed-go = callPackage ./librespeed-go.nix { };
|
||||
paseo-relay = callPackage ./paseo-relay.nix { };
|
||||
# modrinth-app = callPackage ./modrinth-app { };
|
||||
chocolate-doom2xx = callPackage ./chocolate-doom2xx { };
|
||||
windowtolayer = callPackage ./windowtolayer.nix { };
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user