diff --git a/hosts/nixos/jeeves/ollama.nix b/hosts/nixos/jeeves/ollama.nix index 87ac9ac..5f3a822 100644 --- a/hosts/nixos/jeeves/ollama.nix +++ b/hosts/nixos/jeeves/ollama.nix @@ -32,7 +32,7 @@ DO_NOT_TRACK = "True"; SCARF_NO_ANALYTICS = "True"; TRANSFORMERS_CACHE = "${config.services.open-webui.stateDir}/cache"; - OLLAMA_API_BASE_URL = "http://127.0.0.1:11434"; + OLLAMA_API_BASE_URL = "http://127.0.0.1:${builtins.toString config.services.ollama.port}"; # Disable authentication WEBUI_AUTH = "False"; }; diff --git a/hosts/nixos/jeeves/wireguard.nix b/hosts/nixos/jeeves/wireguard.nix index 35c31ec..7a6e164 100644 --- a/hosts/nixos/jeeves/wireguard.nix +++ b/hosts/nixos/jeeves/wireguard.nix @@ -15,8 +15,8 @@ rekeyFile = "${inputs.self}/secrets/home/jeeves/wireguard/key.age"; generator = { script = { lib, pkgs, file, ... }: /* bash */ '' - priv=$(${pkgs.wireguard-tools}/bin/wg genkey) - ${pkgs.wireguard-tools}/bin/wg pubkey <<< "$priv" > ${lib.escapeShellArg (lib.removeSuffix ".age" file + ".pub")} + priv=$(${lib.getExe' pkgs.wireguard-tools "wg"} genkey) + ${lib.getExe' pkgs.wireguard-tools "wg"} pubkey <<< "$priv" > ${lib.escapeShellArg (lib.removeSuffix ".age" file + ".pub")} echo "$priv" ''; };