| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh |
| 2 | |
| 3 | config=$1 |
| 4 | |
| 5 | if [scip-shell system . . `[`. -z "$config" ] || [scip-shell system . . `[`. ! -f "$config" ]; then |
| 6 | echoscip-shell system . . echo. "Usage: $0 <config.nix>" |
| 7 | echoscip-shell system . . echo. "No config given. Exiting." |
| 8 | exit 1 |
| 9 | fi |
| 10 | |
| 11 | nix-build '<nixpkgs/nixos>' \ |
| 12 | -A config.system.build.isoImage \ |
| 13 | -I nixos-config=$config \ |
| 14 | -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-24.05.tar.gz |