nixos/middleman: Serve Paseo web app ourselves

Serve the web app from the Paseo package on `paseo.nul.ie` and point
the daemon's pairing links there, so browsers no longer load Paseo's
hosted app. It connects through our relay, so the daemon stays on
loopback.

Move the patched Paseo package into the shared overlay so `middleman`
and `slop-cannon` use the same build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 00:39:48 +00:00
co-authored by Claude Opus 5.5
parent a62b8351fa
commit b0a7f3cd89
5 changed files with 46 additions and 14 deletions
@@ -38,6 +38,11 @@ let
}))
];
};
# Paseo's web app, which connects to daemons through the relay
paseoWebUi = pkgs.runCommand "paseo-web-ui-${pkgs.paseo.version}" { } ''
cp -r ${pkgs.paseo}/lib/paseo/packages/server/dist/server/web-ui "$out"
'';
wellKnown = {
"/.well-known/" = {
alias = "${wellKnownRoot}/";
@@ -393,6 +398,23 @@ in
};
useACMEHost = pubDomain;
};
"paseo.${pubDomain}" = {
root = paseoWebUi;
extraConfig = ''
gzip_static on;
brotli_static on;
'';
locations = {
"/".tryFiles = "$uri $uri/ /index.html";
"= /index.html".extraConfig = ''
add_header Cache-Control "no-store";
'';
"/_expo/".extraConfig = ''
add_header Cache-Control "public, max-age=31536000, immutable";
'';
};
useACMEHost = pubDomain;
};
"md.${pubDomain}" = {
locations."/" = {