Change-Id: I62dc3a7fd5b8aef467fc547015f23e41d3260122 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83276 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
15 lines
330 B
Bash
Executable File
15 lines
330 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
config=$1
|
|
|
|
if [ -z "$config" ] || [ ! -f "$config" ]; then
|
|
echo "Usage: $0 <config.nix>"
|
|
echo "No config given. Exiting."
|
|
exit 1
|
|
fi
|
|
|
|
nix-build '<nixpkgs/nixos>' \
|
|
-A config.system.build.isoImage \
|
|
-I nixos-config=$config \
|
|
-I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-24.05.tar.gz
|