mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
ai setup
This commit is contained in:
@@ -117,6 +117,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
server = {
|
server = {
|
||||||
|
ai = import ./modules/server/ai.nix flakeContext;
|
||||||
cloudflared = import ./modules/server/cloudflared.nix flakeContext;
|
cloudflared = import ./modules/server/cloudflared.nix flakeContext;
|
||||||
immich = import ./modules/server/immich.nix flakeContext;
|
immich = import ./modules/server/immich.nix flakeContext;
|
||||||
nextcloud = import ./modules/server/nextcloud.nix flakeContext;
|
nextcloud = import ./modules/server/nextcloud.nix flakeContext;
|
||||||
|
|||||||
@@ -69,6 +69,10 @@ let
|
|||||||
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.therima-drive}";
|
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.therima-drive}";
|
||||||
target = "External";
|
target = "External";
|
||||||
};
|
};
|
||||||
|
"LM Studio" = {
|
||||||
|
source = config.lib.file.mkOutOfStoreSymlink "${inputs.zeroq.dirs.vetymae-drive}/AI/LM Studio";
|
||||||
|
target = ".lmstudio";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
pointerCursor = {
|
pointerCursor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Executable
+20
@@ -0,0 +1,20 @@
|
|||||||
|
{ inputs, ... }@flakeContext:
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
services.open-webui = {
|
||||||
|
enable = true;
|
||||||
|
environment = {
|
||||||
|
ANONYMIZED_TELEMETRY = "False";
|
||||||
|
DO_NOT_TRACK = "True";
|
||||||
|
SCARF_NO_ANALYTICS = "True";
|
||||||
|
OLLAMA_API_BASE_URL = "http://127.0.0.1:1234";
|
||||||
|
# Disable authentication
|
||||||
|
WEBUI_AUTH = "False";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
+13
-4
@@ -7,11 +7,22 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
nextjs-ollama-llm-ui.enable = true;
|
nextjs-ollama-llm-ui.enable = false;
|
||||||
ollama = {
|
open-webui = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
environment = {
|
||||||
|
ANONYMIZED_TELEMETRY = "False";
|
||||||
|
DO_NOT_TRACK = "True";
|
||||||
|
SCARF_NO_ANALYTICS = "True";
|
||||||
|
OLLAMA_API_BASE_URL = "http://127.0.0.1:1234";
|
||||||
|
WEBUI_AUTH = "False"; # Disable authentication
|
||||||
|
};
|
||||||
|
};
|
||||||
|
ollama = {
|
||||||
|
enable = false;
|
||||||
package = pkgs.ollama-rocm;
|
package = pkgs.ollama-rocm;
|
||||||
environmentVariables = {
|
environmentVariables = {
|
||||||
|
HSA_OVERRIDE_GFX_VERSION = "11.5.0";
|
||||||
HCC_AMDGPU_TARGET = "gfx1150"; # used to be necessary, but doesn't seem to anymore
|
HCC_AMDGPU_TARGET = "gfx1150"; # used to be necessary, but doesn't seem to anymore
|
||||||
};
|
};
|
||||||
user = "ollama"; # "${inputs.zeroq.devices.admin}";
|
user = "ollama"; # "${inputs.zeroq.devices.admin}";
|
||||||
@@ -23,8 +34,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.open-webui.enable = true;
|
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"libsoup-2.74.3"
|
"libsoup-2.74.3"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user