diff --git a/configurations/nixos/horizon/configuration.nix b/configurations/nixos/horizon/configuration.nix index 63ed59d..f27f585 100644 --- a/configurations/nixos/horizon/configuration.nix +++ b/configurations/nixos/horizon/configuration.nix @@ -51,14 +51,6 @@ fprintd = { enable = true; }; - ollama = { - enable = false; - - loadModels = [ - "deepseek-coder:1.3b" - "deepseek-r1:1.5b" - ]; - }; tailscale = { enable = true; authKeyFile = config.sops.secrets."vpn-keys/tailscale-authkey/horizon".path; diff --git a/modules/nixos-modules/ai.nix b/modules/nixos-modules/ai.nix index 8cc19ff..646e1b5 100644 --- a/modules/nixos-modules/ai.nix +++ b/modules/nixos-modules/ai.nix @@ -16,10 +16,10 @@ type = lib.types.str; default = "ollama"; }; - # apiBase = lib.mkOption { - # type = lib.types.nullOr lib.types.str; - # default = null; - # }; + apiBase = lib.mkOption { + type = lib.types.str; + default = "http://localhost:11434"; + }; roles = lib.mkOption { type = lib.types.listOf (lib.types.enum [ "chat" @@ -40,7 +40,7 @@ }; config = { - # TODO: configure ollama to download any modules listed in options.host.ai.models.{name}.model if options.host.ai.models.{name}.apiBase is null + # TODO: configure ollama to download any modules listed in options.host.ai.models.{name}.model if options.host.ai.models.{name}.apiBase is the default value # TODO: if we have any models that have a non null options.host.ai.models.{name}.apiBase then set services.ollama.enable to a lib.mkAfter true }; }