mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-13 11:15:37 +01:00
Add image configuration for Oracle Cloud Infrastructure and scripts to build and upload the image as a Custom Image.
11 lines
334 B
Bash
Executable file
11 lines
334 B
Bash
Executable file
#! /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
|