lol

maintainers/scripts/oci: Allow A1 image builds

authored by

Samuel Dionne-Riel and committed by
Thiago Kenji Okada
5056824e 362d1d62

+13 -1
+13 -1
nixos/maintainers/scripts/oci/create-image.sh
··· 3 3 export NIX_PATH=nixpkgs=$(dirname $(readlink -f $0))/../../../.. 4 4 export NIXOS_CONFIG=$(dirname $(readlink -f $0))/../../../modules/virtualisation/oci-image.nix 5 5 6 + if (( $# < 1 )); then 7 + ( 8 + echo "Usage: create-image.sh <architecture>" 9 + echo 10 + echo "Where <architecture> is one of:" 11 + echo " x86_64-linux" 12 + echo " aarch64-linux" 13 + ) >&2 14 + fi 15 + 16 + system="$1"; shift 17 + 6 18 nix-build '<nixpkgs/nixos>' \ 7 19 -A config.system.build.OCIImage \ 8 - --argstr system x86_64-linux \ 20 + --argstr system "$system" \ 9 21 --option system-features kvm \ 10 22 -o oci-image