-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sh
More file actions
51 lines (43 loc) · 2.4 KB
/
config.sh
File metadata and controls
51 lines (43 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# DVM user config.
#
# This file is shell code by design. Keep local VM configuration here, not in
# the repository core, so the core can be updated independently.
DVM_PREFIX="${DVM_PREFIX:-dvm}"
DVM_TEMPLATE="${DVM_TEMPLATE:-template:fedora}"
DVM_ARCH="${DVM_ARCH:-aarch64}"
DVM_CPUS="${DVM_CPUS:-4}"
DVM_MEMORY="${DVM_MEMORY:-8GiB}"
DVM_DISK="${DVM_DISK:-80GiB}"
DVM_GUEST_USER="${DVM_GUEST_USER:-$(id -un)}"
DVM_GUEST_HOME="${DVM_GUEST_HOME:-/home/$DVM_GUEST_USER}"
DVM_CODE_DIR="${DVM_CODE_DIR:-$DVM_GUEST_HOME/code}"
# Packages installed or refreshed by `dvm setup <name>` and `dvm setup-all`.
DVM_PACKAGES="${DVM_PACKAGES:-git openssh-clients gpg}"
# Space-separated host scripts. Each script is piped into the VM and runs as the
# guest user with DVM_NAME, DVM_VM_NAME, and DVM_CODE_DIR set.
DVM_SETUP_SCRIPTS="${DVM_SETUP_SCRIPTS:-$DVM_CONFIG/setup.d/fedora.sh}"
# Optional host dotfiles snapshot copied into the VM during `dvm setup`.
# Keep this opt-in. DVM copies a snapshot before user setup scripts run; it does
# not mount a live host directory into the VM.
# DVM_DOTFILES_DIR="${HOME}/.dotfiles"
DVM_DOTFILES_DIR="${DVM_DOTFILES_DIR:-}"
DVM_DOTFILES_TARGET="${DVM_DOTFILES_TARGET:-$DVM_GUEST_HOME/.dotfiles}"
DVM_DOTFILES_EXCLUDES="${DVM_DOTFILES_EXCLUDES:-.git .ssh .gnupg .env secrets}"
# Optional llama.cpp VM helper config. `dvm ai create` uses these values.
DVM_AI_NAME="${DVM_AI_NAME:-ai}"
DVM_AI_PACKAGES="${DVM_AI_PACKAGES:-llama-cpp curl}"
DVM_AI_SERVER_CMD="${DVM_AI_SERVER_CMD:-llama-server}"
DVM_AI_SERVICE_NAME="${DVM_AI_SERVICE_NAME:-dvm-llama.service}"
DVM_AI_HOST="${DVM_AI_HOST:-0.0.0.0}"
DVM_AI_PORT="${DVM_AI_PORT:-8080}"
DVM_AI_MODELS_DIR="${DVM_AI_MODELS_DIR:-$DVM_GUEST_HOME/models}"
DVM_AI_DEFAULT_MODEL="${DVM_AI_DEFAULT_MODEL:-qwen25-coder-7b-q4}"
# Space-separated alias=url entries. Aliases become model filenames in the VM.
DVM_AI_MODELS="${DVM_AI_MODELS:-qwen25-coder-7b-q4=https://huggingface.co/bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/resolve/main/Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf?download=true}"
DVM_AI_EXTRA_ARGS="${DVM_AI_EXTRA_ARGS:-}"
# Hosted AI tools should run through `dvm agent`, not the normal VM user.
DVM_AGENT_USER="${DVM_AGENT_USER:-dvm-agent}"
DVM_AGENT_HOME="${DVM_AGENT_HOME:-/home/$DVM_AGENT_USER}"
DVM_AGENT_PACKAGES="${DVM_AGENT_PACKAGES:-bubblewrap acl shadow-utils}"
DVM_AGENT_CLAUDE_CHANNEL="${DVM_AGENT_CLAUDE_CHANNEL:-stable}"
DVM_GPG_DIR="${DVM_GPG_DIR:-$DVM_STATE/gpg}"