Use SCRIPT_DIR, add sshpass and auto-mount workspaces, update flakes
This commit is contained in:
parent
8534f7efb9
commit
9aa72fade7
8 changed files with 292 additions and 413 deletions
|
|
@ -32,10 +32,16 @@
|
|||
# Create output directories
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/lib/qvm
|
||||
mkdir -p $out/share/qvm
|
||||
|
||||
# Install library files
|
||||
install -Dm755 lib/common.sh $out/lib/qvm/common.sh
|
||||
|
||||
# Install default VM flake template
|
||||
if [ -d "flake/default-vm" ]; then
|
||||
cp -r flake/default-vm $out/share/qvm/default-vm
|
||||
fi
|
||||
|
||||
# Install all scripts from bin/
|
||||
for script in bin/*; do
|
||||
if [ -f "$script" ]; then
|
||||
|
|
@ -57,6 +63,7 @@
|
|||
pkgs.netcat-gnu
|
||||
pkgs.bc
|
||||
pkgs.procps
|
||||
pkgs.sshpass
|
||||
]} \
|
||||
--set QVM_LIB_DIR "$out/lib/qvm"
|
||||
done
|
||||
|
|
@ -104,6 +111,7 @@
|
|||
netcat-gnu
|
||||
bc
|
||||
procps
|
||||
sshpass
|
||||
|
||||
# Development tools
|
||||
shellcheck
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue