mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 05:23:28 +01:00
make-disk-image: allow vmTools qemu usage to be overriden by disko configuration
This is needed to prevent two layers of emulation when offering a build for a host running binfmt such as an x86 host trying to compile for aarch64 via binfmt
This commit is contained in:
1 parent
de015d2a44
commit
d8a1d5e1f0
2 files changed
+11
-2
No files matched your search
+10
-2
@@ -10,8 +10,16 @@ let
|
||||
in
|
||||
{
|
||||
options.disko = {
|
||||
imageBuilderKernel = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
imageBuilderQemu = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
description = ''
|
||||
the qemu emulator string used when building disk images via make-disk-image.nix.
|
||||
Useful when using binfmt on your build host, and wanting to build disk
|
||||
images for a foreign architecture
|
||||
'';
|
||||
default = null;
|
||||
example = lib.literalExpression "''${pkgs.qemu_kvm}/bin/qemu-system-aarch64";
|
||||
};
|
||||
imageBuilderPkgs = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
description = ''
|
||||
|
||||
Reference in new issue
Block a user