From ecf3e03e81601fcec806fd467abdb82678277d7d Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Wed, 4 Jun 2025 16:13:22 +0200 Subject: [PATCH] feat: add Ollama and Qdrant service modules to configuration --- hosts/nb/configuration.nix | 2 ++ hosts/nb/modules/ollama.nix | 13 +++++++++++++ hosts/nb/modules/qdrant.nix | 7 +++++++ 3 files changed, 22 insertions(+) create mode 100644 hosts/nb/modules/ollama.nix create mode 100644 hosts/nb/modules/qdrant.nix diff --git a/hosts/nb/configuration.nix b/hosts/nb/configuration.nix index f4295ff..cb5feb6 100644 --- a/hosts/nb/configuration.nix +++ b/hosts/nb/configuration.nix @@ -27,6 +27,8 @@ in { ./utils/modules/autoupgrade.nix ./modules/puppeteer.nix ./modules/mcp-global.nix + ./modules/ollama.nix + ./modules/qdrant.nix # ./modules/development diff --git a/hosts/nb/modules/ollama.nix b/hosts/nb/modules/ollama.nix new file mode 100644 index 0000000..444aa1a --- /dev/null +++ b/hosts/nb/modules/ollama.nix @@ -0,0 +1,13 @@ +{ config, pkgs, lib, ... }: + +{ + services.ollama = { + enable = true; + host = "127.0.0.1"; + port = 11434; + openFirewall = false; + loadModels = [ + "mxbai-embed-large" + ]; + }; +} \ No newline at end of file diff --git a/hosts/nb/modules/qdrant.nix b/hosts/nb/modules/qdrant.nix new file mode 100644 index 0000000..4f75564 --- /dev/null +++ b/hosts/nb/modules/qdrant.nix @@ -0,0 +1,7 @@ +{ config, pkgs, ... }: + +{ + services.qdrant = { + enable = true; + }; +} \ No newline at end of file