chore: Initial commit.

This commit is contained in:
greysoh 2024-07-13 16:56:20 -04:00
parent 8fd5c7566a
commit 3588bf43b9
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
10 changed files with 290 additions and 3 deletions

15
build.sh Executable file
View 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