summaryrefslogtreecommitdiff
path: root/util/liveiso/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/liveiso/build.sh')
-rwxr-xr-xutil/liveiso/build.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/util/liveiso/build.sh b/util/liveiso/build.sh
new file mode 100755
index 0000000000..ee63bc538a
--- /dev/null
+++ b/util/liveiso/build.sh
@@ -0,0 +1,13 @@
+#!/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