diff options
Diffstat (limited to 'util/liveiso/nixos/build.sh')
-rwxr-xr-x | util/liveiso/nixos/build.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/util/liveiso/nixos/build.sh b/util/liveiso/nixos/build.sh new file mode 100755 index 0000000000..e2e1d65672 --- /dev/null +++ b/util/liveiso/nixos/build.sh @@ -0,0 +1,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 |