From b29ee5ac03b7dfaeb45ba1c544e472db4909e0a9 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 21 Aug 2025 02:43:35 +0000 Subject: [PATCH] desko: gate ollama behind sane.maxBuildCost option --- hosts/by-name/desko/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/by-name/desko/default.nix b/hosts/by-name/desko/default.nix index 44e10b766..bcf264f2a 100644 --- a/hosts/by-name/desko/default.nix +++ b/hosts/by-name/desko/default.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, lib, ... }: { imports = [ ./fs.nix @@ -27,7 +27,7 @@ sane.roles.client = true; sane.roles.pc = true; sane.roles.work = true; - sane.services.ollama.enable = true; + sane.services.ollama.enable = lib.mkIf (config.sane.maxBuildCost >= 3) true; sane.services.wg-home.enable = true; sane.ovpn.addrV4 = "172.26.55.21"; # sane.ovpn.addrV6 = "fd00:0000:1337:cafe:1111:1111:20c1:a73c";