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
|
|
@ -32,9 +32,9 @@ ensure_user_flake() {
|
|||
# In development: $(dirname "$0")/../flake/default-vm/
|
||||
local default_flake_dir
|
||||
|
||||
# Try installed location first
|
||||
if [[ -d "$QVM_LIB_DIR/../share/qvm/default-vm" ]]; then
|
||||
default_flake_dir="$QVM_LIB_DIR/../share/qvm/default-vm"
|
||||
# Try installed location first ($QVM_LIB_DIR is $out/lib/qvm)
|
||||
if [[ -d "$QVM_LIB_DIR/../../share/qvm/default-vm" ]]; then
|
||||
default_flake_dir="$QVM_LIB_DIR/../../share/qvm/default-vm"
|
||||
else
|
||||
# Fall back to development location
|
||||
default_flake_dir="$(dirname "$(readlink -f "$0")")/../flake/default-vm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue