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"; + }; + }; + }; +}