fixed for update button in web

This commit is contained in:
2026-04-02 12:31:04 -05:00
parent ea28f9b303
commit fb940b055d

View File

@@ -293,6 +293,7 @@ async def api_reboot():
return {"ok": True}
@app.post("/api/updates/run")
async def api_updates_run():
async def event_stream() -> AsyncIterator[str]:
yield "data: $ ssh root@localhost 'cd /etc/nixos && nix flake update && nixos-rebuild switch && flatpak update -y'\n\n"