rebuilding nix files
This commit is contained in:
+316
-323
File diff suppressed because it is too large
Load Diff
+10
-17
@@ -1646,11 +1646,18 @@ It automatically pulls and prepares selected coding models (e.g., Qwen2.5-Coder
|
||||
{ config, pkgs, lib, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
# Read environment variables (OLLAMA_HOST and MISTRAL_API_KEY) from a local file.
|
||||
AiRepoEnv = flakeRoot + "/assets/conf/apps/ai/ai.env";
|
||||
AiRepoConf = flakeRoot + "/assets/conf/apps/ai/ai.conf";
|
||||
envVars = lib.genAttrs (builtins.splitStrings "\n" (builtins.readFile (toString AiRepoEnv)))
|
||||
(nameValue: builtins.splitString "=" nameValue);
|
||||
|
||||
# Read and parse the environment file
|
||||
envVars = lib.genAttrs (map (
|
||||
line: let
|
||||
parts = builtins.split "=" line;
|
||||
key = builtins.elemAt parts 0;
|
||||
value = builtins.elemAt parts 1;
|
||||
in { name = key; value = value; }
|
||||
) (lib.lines (builtins.readFile (toString AiRepoEnv))))
|
||||
(entry: entry.name);
|
||||
in
|
||||
{
|
||||
# Install ZED editor and Ollama with Vulkan support (for CPU/AMD).
|
||||
@@ -1704,22 +1711,8 @@ in
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
# --- Usage Notes ---
|
||||
# 1. Pulling Additional Models:
|
||||
# ollama pull <model-name>
|
||||
# 2. Switching GPU Backends:
|
||||
# - NVIDIA: Replace `ollama-vulkan` with `ollama`
|
||||
# - AMD: Use `ollama-rocm` and ensure ROCm is installed
|
||||
# 3. ZED Plugin Setup:
|
||||
# - Install Ollama and Mistral plugins in ZED
|
||||
# 4. Security:
|
||||
# - Never commit ai.env to version control
|
||||
# 5. Persistent Service:
|
||||
# loginctl enable-linger $(whoami)
|
||||
}
|
||||
|
||||
|
||||
#+end_src
|
||||
|
||||
** NCSway
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
{ config, pkgs, lib, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
# Read environment variables (OLLAMA_HOST and MISTRAL_API_KEY) from a local file.
|
||||
AiRepoEnv = flakeRoot + "/assets/conf/apps/ai/ai.env";
|
||||
AiRepoConf = flakeRoot + "/assets/conf/apps/ai/ai.conf";
|
||||
envVars = lib.genAttrs (builtins.splitStrings "\n" (builtins.readFile (toString AiRepoEnv)))
|
||||
(nameValue: builtins.splitString "=" nameValue);
|
||||
|
||||
# Read and parse the environment file
|
||||
envVars = lib.genAttrs (map (
|
||||
line: let
|
||||
parts = builtins.split "=" line;
|
||||
key = builtins.elemAt parts 0;
|
||||
value = builtins.elemAt parts 1;
|
||||
in { name = key; value = value; }
|
||||
) (lib.lines (builtins.readFile (toString AiRepoEnv))))
|
||||
(entry: entry.name);
|
||||
in
|
||||
{
|
||||
# Install ZED editor and Ollama with Vulkan support (for CPU/AMD).
|
||||
@@ -59,17 +66,4 @@ in
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
# --- Usage Notes ---
|
||||
# 1. Pulling Additional Models:
|
||||
# ollama pull <model-name>
|
||||
# 2. Switching GPU Backends:
|
||||
# - NVIDIA: Replace `ollama-vulkan` with `ollama`
|
||||
# - AMD: Use `ollama-rocm` and ensure ROCm is installed
|
||||
# 3. ZED Plugin Setup:
|
||||
# - Install Ollama and Mistral plugins in ZED
|
||||
# 4. Security:
|
||||
# - Never commit ai.env to version control
|
||||
# 5. Persistent Service:
|
||||
# loginctl enable-linger $(whoami)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user