5 export NIX_PATH
=nixpkgs
=$
(dirname $
(readlink
-f $0))/..
/..
/..
/..
6 export NIXOS_CONFIG
=$
(dirname $
(readlink
-f $0))/..
/..
/..
/modules
/virtualisation
/oci-image.nix
10 echo "Usage: create-image.sh <architecture>"
12 echo "Where <architecture> is one of:"
20 nix-build
'<nixpkgs/nixos>' \
21 -A config.system.build.OCIImage \
22 --argstr system
"$system" \
23 --option system-features kvm \