diff --git a/modules/desktop/binfmt/default.nix b/modules/desktop/binfmt/default.nix index 5b180c0..cedd52c 100644 --- a/modules/desktop/binfmt/default.nix +++ b/modules/desktop/binfmt/default.nix @@ -3,9 +3,14 @@ nixpkgs.overlays = [ (_: super: { # Because of https://github.com/NixOS/nixpkgs/pull/378579 - qemu = super.qemu.overrideAttrs (old: { - patches = (old.patches or [ ]) ++ [ ./qemu.patch ]; - }); + # Only qemu-user is patched (binfmt uses it), so full qemu stays cached + qemu-user = + (super.qemu-user.override { + hostCpuTargets = [ "aarch64-linux-user" ]; + }).overrideAttrs + (old: { + patches = (old.patches or [ ]) ++ [ ./qemu.patch ]; + }); }) ]; }