Compare commits
No commits in common. "3602b0439708feb2547fc4bdff57ae721d991611" and "9eba4f1552fd4279991b007d44bca0085a712d93" have entirely different histories.
3602b04397
...
9eba4f1552
2 changed files with 4 additions and 38 deletions
|
|
@ -21,7 +21,6 @@
|
||||||
secrets.url = "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=flakes/secrets";
|
secrets.url = "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=flakes/secrets";
|
||||||
# beszel.url = "path:../../flakes/beszel";
|
# beszel.url = "path:../../flakes/beszel";
|
||||||
beszel.url = "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=flakes/beszel";
|
beszel.url = "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=flakes/beszel";
|
||||||
secrets-bao.url = "path:../../flakes/secrets-bao";
|
|
||||||
|
|
||||||
ros_neovim.url = "git+https://git.joshuabell.xyz/ringofstorms/nvim";
|
ros_neovim.url = "git+https://git.joshuabell.xyz/ringofstorms/nvim";
|
||||||
|
|
||||||
|
|
@ -81,42 +80,6 @@
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
inputs.secrets-bao.nixosModules.default
|
|
||||||
(
|
|
||||||
{ inputs, lib, ... }:
|
|
||||||
let
|
|
||||||
secrets = {
|
|
||||||
litellm-env = {
|
|
||||||
owner = "root";
|
|
||||||
group = "root";
|
|
||||||
mode = "0400";
|
|
||||||
path = "/run/secrets/litellm.env";
|
|
||||||
softDepend = [ "litellm" ];
|
|
||||||
template = ''
|
|
||||||
{{- with secret "kv/data/machines/home/openrouter" -}}OPENROUTER_API_KEY={{ .Data.data.api-key }}{{ end }}
|
|
||||||
{{- with secret "kv/data/machines/home/anthropic-claude" -}}
|
|
||||||
ANTHROPIC_API_KEY={{ .Data.data.api-key }}{{ end -}}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
lib.mkMerge [
|
|
||||||
{
|
|
||||||
ringofstorms.secretsBao = {
|
|
||||||
enable = true;
|
|
||||||
zitadelKeyPath = "/machine-key.json";
|
|
||||||
openBaoAddr = "https://sec.joshuabell.xyz";
|
|
||||||
jwtAuthMountPath = "auth/zitadel-jwt";
|
|
||||||
openBaoRole = "machines";
|
|
||||||
zitadelIssuer = "https://sso.joshuabell.xyz";
|
|
||||||
zitadelProjectId = "344379162166820867";
|
|
||||||
inherit secrets;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
(inputs.secrets-bao.lib.applyConfigChanges secrets)
|
|
||||||
]
|
|
||||||
)
|
|
||||||
|
|
||||||
nixarr.nixosModules.default
|
nixarr.nixosModules.default
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./mods
|
./mods
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ in
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
openFirewall = false;
|
openFirewall = false;
|
||||||
package = pkgsLitellm.litellm;
|
package = pkgsLitellm.litellm;
|
||||||
environmentFile = "/run/secrets/litellm.env";
|
|
||||||
environment = {
|
environment = {
|
||||||
SCARF_NO_ANALYTICS = "True";
|
SCARF_NO_ANALYTICS = "True";
|
||||||
DO_NOT_TRACK = "True";
|
DO_NOT_TRACK = "True";
|
||||||
|
|
@ -38,6 +37,10 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
environment_variables = {
|
environment_variables = {
|
||||||
LITELLM_PROXY_API_KEY = "na";
|
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 = {
|
litellm_settings = {
|
||||||
check_provider_endpoints = true;
|
check_provider_endpoints = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue