chore: Initial commit.
This commit is contained in:
parent
8fd5c7566a
commit
3588bf43b9
10 changed files with 290 additions and 3 deletions
15
build.sh
Executable file
15
build.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
echo "Building '$1'..."
|
||||
nix --extra-experimental-features nix-command run github:nix-community/nixos-generators -- --format proxmox --configuration "$1.nix" | tee build.log
|
||||
|
||||
if [ ! -d "out/" ]; then
|
||||
mkdir out/
|
||||
fi
|
||||
|
||||
echo "Copying file to the output directory..."
|
||||
# Hack!
|
||||
# TODO: Fix this mess later
|
||||
mkdir -p out/$1
|
||||
rm -rf out/$1
|
||||
OUT_FILE="$(sed -n '$p' build.log)"
|
||||
cp -r $OUT_FILE out/$1.vma.zst
|
Reference in a new issue