Source system and user qvm.conf; add memory/cpus options; fix flake path
This commit is contained in:
parent
e28d1fa14f
commit
8d68e1daf9
4 changed files with 37 additions and 3 deletions
|
|
@ -116,6 +116,15 @@ main() {
|
|||
# First-run initialization
|
||||
ensure_dirs
|
||||
|
||||
# Source config file if it exists (sets QVM_MEMORY, QVM_CPUS, etc.)
|
||||
# Check system-wide config first, then user config (user overrides system)
|
||||
if [[ -f "/etc/xdg/qvm/qvm.conf" ]]; then
|
||||
source "/etc/xdg/qvm/qvm.conf"
|
||||
fi
|
||||
if [[ -f "$QVM_CONFIG_FILE" ]]; then
|
||||
source "$QVM_CONFIG_FILE"
|
||||
fi
|
||||
|
||||
# Check if VM runner exists, build if not
|
||||
if [[ ! -L "$QVM_VM_RUNNER" || ! -f "$(readlink -f "$QVM_VM_RUNNER" 2>/dev/null || echo "")" ]]; then
|
||||
log_info "First run detected - building VM..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue