mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +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
@@ -9,6 +9,7 @@
|
||||
let
|
||||
vmTools = pkgs.vmTools.override {
|
||||
rootModules = [ "9p" "9pnet_virtio" "virtio_pci" "virtio_blk" ] ++ nixosConfig.config.disko.extraRootModules;
|
||||
customQemu = nixosConfig.config.disko.imageBuilderQemu;
|
||||
kernel = pkgs.aggregateModules
|
||||
(with nixosConfig.config.disko.imageBuilderKernelPackages; [ kernel ]
|
||||
++ lib.optional (lib.elem "zfs" nixosConfig.config.disko.extraRootModules) zfs);
|
||||
|
||||
Reference in new issue
Block a user