Add ollama and open-webui

This commit is contained in:
Dave Gallant
2025-02-01 13:04:07 -05:00
parent fbb9a63296
commit 88351e46aa
2 changed files with 25 additions and 4 deletions

View File

@@ -247,7 +247,25 @@ in
}; };
flatpak.enable = true; flatpak.enable = true;
gnome.gnome-keyring.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; printing.enable = true;
resolved.enable = true; resolved.enable = true;
sshd.enable = true; sshd.enable = true;

View File

@@ -1,4 +1,8 @@
{ stdenv, lib, fetchurl, }: {
stdenv,
lib,
fetchurl,
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cd-fzf"; pname = "cd-fzf";
version = "0.0.1"; version = "0.0.1";
@@ -9,8 +13,7 @@ stdenv.mkDerivation rec {
cp ${executable} $out/bin/cd-fzf cp ${executable} $out/bin/cd-fzf
''; '';
meta = with lib; { meta = with lib; {
description = description = "\n Fuzzy find change directory";
"\n Fuzzy find change directory";
platforms = platforms.unix; platforms = platforms.unix;
}; };
} }