summaryrefslogtreecommitdiff
path: root/util/liveiso/build.sh
blob: e2e1d656729a7c3411aaefe90e00293814c7d53d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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-22.11.tar.gz