mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-17 23:19:25 +03:00
11 lines
334 B
Bash
11 lines
334 B
Bash
![]() |
#! /usr/bin/env bash
|
||
|
|
||
|
export NIX_PATH=nixpkgs=$(dirname $(readlink -f $0))/../../../..
|
||
|
export NIXOS_CONFIG=$(dirname $(readlink -f $0))/../../../modules/virtualisation/oci-image.nix
|
||
|
|
||
|
nix-build '<nixpkgs/nixos>' \
|
||
|
-A config.system.build.OCIImage \
|
||
|
--argstr system x86_64-linux \
|
||
|
--option system-features kvm \
|
||
|
-o oci-image
|