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