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