From eda9f2a1f9cffe3e6f561046a976cafc52660278 Mon Sep 17 00:00:00 2001 From: m3tm3re Date: Sun, 15 Feb 2026 18:15:37 +0100 Subject: [PATCH] Enable mem0 and qdrant services on m3-ares Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- hosts/m3-ares/services/default.nix | 2 ++ hosts/m3-ares/services/mem0.nix | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 hosts/m3-ares/services/mem0.nix diff --git a/hosts/m3-ares/services/default.nix b/hosts/m3-ares/services/default.nix index e471dad..72bcd4c 100644 --- a/hosts/m3-ares/services/default.nix +++ b/hosts/m3-ares/services/default.nix @@ -2,6 +2,7 @@ imports = [ ./containers #./n8n.nix + ./mem0.nix ./postgres.nix ./restic.nix ./sound.nix @@ -15,6 +16,7 @@ gvfs.enable = true; trezord.enable = true; gnome.gnome-keyring.enable = true; + qdrant.enable = true; # qdrant = { # enable = true; # settings = { diff --git a/hosts/m3-ares/services/mem0.nix b/hosts/m3-ares/services/mem0.nix new file mode 100644 index 0000000..fdf7e97 --- /dev/null +++ b/hosts/m3-ares/services/mem0.nix @@ -0,0 +1,23 @@ +{ + m3ta.mem0 = { + enable = true; + port = 8000; + host = "127.0.0.1"; + + # LLM Configuration + llm = { + provider = "openai"; + apiKeyFile = "/var/lib/mem0/openai-api-key-1"; # Use agenix or sops-nix + }; + + # Vector Storage Configuration + vectorStore = { + provider = "qdrant"; # or "chroma", "pinecone", etc. + config = { + host = "localhost"; + port = 6333; + collection_name = "mem0_alice"; + }; + }; + }; +}