From ee6fa6cd9b7507d04ef232e794bf0e82f60d50e6 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Tue, 6 Jan 2026 22:27:49 -0600 Subject: [PATCH] Enable geoclue2 and add litellm models and API key vars --- flakes/common/nix_modules/timezone_auto.nix | 1 + hosts/h001/mods/litellm.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/flakes/common/nix_modules/timezone_auto.nix b/flakes/common/nix_modules/timezone_auto.nix index d73258e8..42d31593 100644 --- a/flakes/common/nix_modules/timezone_auto.nix +++ b/flakes/common/nix_modules/timezone_auto.nix @@ -1,6 +1,7 @@ { lib, ... }: { services.dbus.enable = lib.mkDefault true; + services.geoclue2.enable = true; time.timeZone = null; services.automatic-timezoned.enable = true; diff --git a/hosts/h001/mods/litellm.nix b/hosts/h001/mods/litellm.nix index d60c2d63..ce0db09b 100644 --- a/hosts/h001/mods/litellm.nix +++ b/hosts/h001/mods/litellm.nix @@ -37,6 +37,10 @@ in settings = { environment_variables = { LITELLM_PROXY_API_KEY = "na"; + + # TODO get from openbao secrets somehow + OPENROUTER_API_KEY = "kv/data/machines/home/openrouter api-key"; + ANTHROPIC_API_KEY = "kv/data/machines/home/anthropic-claude api-key"; }; litellm_settings = { check_provider_endpoints = true; @@ -44,6 +48,20 @@ in modify_params = true; }; model_list = [ + # Anthropic (direct) + { + model_name = "anthropic/*"; + litellm_params = { + model = "anthropic/*"; + }; + } + # OpenRouter + { + model_name = "openrouter/*"; + litellm_params = { + model = "openrouter/*"; + }; + } ] # Copilot ++ (builtins.map @@ -142,3 +160,4 @@ in }; }; } +