From c82896c292841e755ee75b172e3a9649b59d9ca0 Mon Sep 17 00:00:00 2001 From: Ex-32 Date: Tue, 19 Dec 2023 13:05:26 -0600 Subject: [PATCH] nixos/binfmt: added assertion to prevent emulation of current system should fix https://github.com/NixOS/nixpkgs/issues/218465 --- nixos/modules/system/boot/binfmt.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/binfmt.nix b/nixos/modules/system/boot/binfmt.nix index d16152ab9dec..9639d67abe61 100644 --- a/nixos/modules/system/boot/binfmt.nix +++ b/nixos/modules/system/boot/binfmt.nix @@ -281,7 +281,7 @@ in { }; config = { - boot.binfmt.registrations = builtins.listToAttrs (map (system: { + boot.binfmt.registrations = builtins.listToAttrs (map (system: assert system != pkgs.system; { name = system; value = { config, ... }: let interpreter = getEmulator system;