From 2d50efec563f258e243737f9be970908a2c14e9a Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Wed, 1 Oct 2025 10:43:53 -0500 Subject: modules/ollama: Create by factoring common code from bean/*, tomato --- hosts/bean/common.nix | 7 +------ hosts/tomato/default.nix | 2 ++ hosts/tomato/packages.nix | 10 ---------- 3 files changed, 3 insertions(+), 16 deletions(-) (limited to 'hosts') diff --git a/hosts/bean/common.nix b/hosts/bean/common.nix index ef7ec36..5785ac9 100644 --- a/hosts/bean/common.nix +++ b/hosts/bean/common.nix @@ -79,12 +79,7 @@ in "xdg/gtk-3.0/settings.ini".source = ./gtkrc-3.ini; }; - services.ollama = { - enable = true; - environmentVariables = { - OLLAMA_CONTEXT_LENGTH = "8192"; - }; - }; + this.ollama.enable = true; services.joycond.enable = true; diff --git a/hosts/tomato/default.nix b/hosts/tomato/default.nix index d80afa2..b2b3e8a 100644 --- a/hosts/tomato/default.nix +++ b/hosts/tomato/default.nix @@ -28,6 +28,8 @@ services.joycond.enable = true; + this.ollama.enable = true; + this.buildMachines = ["pinto"]; this.apache = { diff --git a/hosts/tomato/packages.nix b/hosts/tomato/packages.nix index 5135f7e..5c17218 100644 --- a/hosts/tomato/packages.nix +++ b/hosts/tomato/packages.nix @@ -3,8 +3,6 @@ let blender-bin = inputs.blender-bin. packages.x86_64-linux; - nixpkgs-unstable = inputs.nixpkgs-unstable. - legacyPackages.x86_64-linux; in { this.sets = { @@ -72,14 +70,6 @@ in virtualisation.waydroid.enable = true; programs.adb.enable = true; - services.ollama = { - enable = true; - package = nixpkgs-unstable.ollama; - environmentVariables = { - OLLAMA_CONTEXT_LENGTH = "8192"; - }; - }; - this.unfree.allowed = [ "shipwright" "2ship2harkinian" -- cgit v1.2.3