mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
tests: fix enabling Canokey
This commit is contained in:
1 parent
7da3d737f7
commit
640d1dd8e0
1 file changed
+9
-1
+9
-1
@@ -96,8 +96,13 @@ let
|
||||
|
||||
# Get qemu-common library functions for this pkgs
|
||||
qemu-common = qemu-common-lib pkgs;
|
||||
|
||||
qemuPkg = pkgs.qemu_test.override {
|
||||
canokeySupport = enableCanokey;
|
||||
};
|
||||
|
||||
# qemuBinary returns a string like: "/nix/store/.../qemu-system-x86_64 -machine accel=kvm:tcg -cpu max"
|
||||
qemuBinaryString = qemu-common.qemuBinary pkgs.qemu_test;
|
||||
qemuBinaryString = qemu-common.qemuBinary qemuPkg;
|
||||
|
||||
# for installation we skip /dev/vda because it is the test runner disk
|
||||
|
||||
@@ -301,6 +306,9 @@ let
|
||||
"-device pci-ohci,id=usb-bus"
|
||||
"-device canokey,bus=usb-bus.0,file=/tmp/canokey-file"
|
||||
];
|
||||
|
||||
# REMOVEME when Canokey support is enabled upstream
|
||||
qemu.package = lib.mkForce qemuPkg;
|
||||
};
|
||||
|
||||
# useful for debugging via repl
|
||||
|
||||
Reference in new issue
Block a user