2021-12-26 12:36:12 +01:00
|
|
|
#!/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 \
|
2021-12-25 03:04:00 +01:00
|
|
|
-I nixos-config=$config \
|
2023-12-08 10:06:20 +01:00
|
|
|
-I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-23.11.tar.gz
|