Create NixOS module for mem0 service (Postgres + pgvector + FastAPI + nginx) #44
Labels
No labels
host:electra
host:fleet
host:lyra
host:vega
host:vega
phase:cutover
phase:deploy
phase:mcp
phase:module
phase:packaging
phase:prep
phase:validation
project:attic-postgres-lyra-rollout
project:auto-update-reliability
project:declarative-purity-cleanup
project:external-review
project:host-facts-refactor
project:lyra-nixos-deploy
project:lyra-service-stack-migration
project:nebula-mesh-network
project:security-hardening
project:service-stack-migration
project:vega-sillytavern-cutover
service:auto-update
service:mem0
service:sillytavern
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
nimmo/nixos-config#44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scope
Create
modules/services/mem0.nixin nixos-config that consumes themem0-nixflake input and runs the mem0 self-hosted server as native NixOS services — no Docker.Deliverables
modules/services/mem0.nixwithnixosConfig.mem0options:enable,stateDir,listenAddress,apiPort,dashboardPortllm.provider,llm.model,llm.baseUrl,llm.apiKeySecretembedder.provider,embedder.model,embedder.baseUrlpostgres.*(host, port, db, user, collection name)dashboardDomain(for nginx vhost)systemd.services.mem0-serverrunning uvicorn with env from SOPS templatesystemd.services.mem0-dashboardor nginx vhost serving the static Next.js exportservices.postgresqlwithpgvectorextension)services.qdrant) if needed by mem0 config (or rely on pgvector)preStartorExecStartPrehooksecrets/mem0.yamlskeleton (API key, JWT secret, Postgres password, LLM API key)backrest.extraPathsincludesstateDirserviceFailureMonitorincludesmem0-serverArchitecture
Reference
Mirror the
modules/services/librarry.nixstructure:secrets/mem0.yaml(not the monolithicsecrets/secrets.yaml)sops.templates."mem0-env"for env compositionEnvironmentFile