From bd49791e06f3ab5f04a4c0097b7fc6a6a1f39494 Mon Sep 17 00:00:00 2001 From: Lilith Date: Wed, 24 Jul 2024 01:15:10 +0200 Subject: [PATCH] ollama --- system/full.nix | 5 ++++- system/ollama.nix | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/system/full.nix b/system/full.nix index 3852050b..ff59c43a 100644 --- a/system/full.nix +++ b/system/full.nix @@ -18,5 +18,8 @@ ./syncthing.nix ./wayland.nix ./zsh.nix - ] ++ (lib.optional config.ollama.enable ./ollama.nix); + + + ./ollama.nix + ]; } diff --git a/system/ollama.nix b/system/ollama.nix index 6dfac9f1..52f29ae2 100644 --- a/system/ollama.nix +++ b/system/ollama.nix @@ -1,6 +1,8 @@ -{...}: { - services.ollama = { - enable = true; - acceleration = "rocm"; +{ options, lib, ...}: { + options = lib.mkIf options.ollama.enable { + services.ollama = { + enable = true; + acceleration = "rocm"; + }; }; }