From 88351e46aa491b69c47394cf18106e1d8d599cdb Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sat, 1 Feb 2025 13:04:07 -0500 Subject: [PATCH] Add ollama and open-webui --- machines/hephaestus/configuration.nix | 20 +++++++++++++++++++- overlays/cd-fzf/default.nix | 9 ++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/machines/hephaestus/configuration.nix b/machines/hephaestus/configuration.nix index 9029bfd..382d6b1 100644 --- a/machines/hephaestus/configuration.nix +++ b/machines/hephaestus/configuration.nix @@ -247,7 +247,25 @@ in }; flatpak.enable = true; gnome.gnome-keyring.enable = true; - mullvad-vpn.enable = false; + ollama = { + package = unstable.ollama; + enable = true; + acceleration = "rocm"; + environmentVariables = { + HSA_OVERRIDE_GFX_VERSION = "11.0.2"; + }; + }; + open-webui = { + enable = true; + package = unstable.open-webui; + environment = { + ANONYMIZED_TELEMETRY = "False"; + DO_NOT_TRACK = "True"; + SCARF_NO_ANALYTICS = "True"; + OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api"; + OLLAMA_BASE_URL = "http://127.0.0.1:11434"; + }; + }; printing.enable = true; resolved.enable = true; sshd.enable = true; diff --git a/overlays/cd-fzf/default.nix b/overlays/cd-fzf/default.nix index 7f8fe80..49fe529 100644 --- a/overlays/cd-fzf/default.nix +++ b/overlays/cd-fzf/default.nix @@ -1,4 +1,8 @@ -{ stdenv, lib, fetchurl, }: +{ + stdenv, + lib, + fetchurl, +}: stdenv.mkDerivation rec { pname = "cd-fzf"; version = "0.0.1"; @@ -9,8 +13,7 @@ stdenv.mkDerivation rec { cp ${executable} $out/bin/cd-fzf ''; meta = with lib; { - description = - "\n Fuzzy find change directory"; + description = "\n Fuzzy find change directory"; platforms = platforms.unix; }; }