This commit is contained in:
plasmagoat 2025-06-09 00:55:51 +02:00
parent a8aa633c49
commit de99267348
11 changed files with 55 additions and 252 deletions

View file

@ -0,0 +1,9 @@
#!/bin/bash
set -euo pipefail
# This script assumes 'flake.nix' and 'configuration.nix' are in the parent directory
# and outputs the result to a symlink named 'result'
echo "Building NixOS image..."
nix build .#nixosConfigurations.proxmox-vm.config.system.build.qemu-image
echo "NixOS image build complete."

13
scripts/run_ancible_ci.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
set -euo pipefail
# Navigate to the ansible directory
cd ansible
# Run the image deployment playbook
echo "Running Ansible upload-template playbook..."
ansible-playbook upload-template.yml \
-e "cpu_cores=4" \
-e "memory_mb=4096"
echo "Ansible playbook completed."