Merge pull request #275485 from Ex-32/binfmt-emulatedsystems-fix

nixos/binfmt: added assertion to prevent emulation of current system
This commit is contained in:
Pol Dellaiera
2024-05-15 08:58:12 +02:00
committed by GitHub
+1 -1
View File
@@ -280,7 +280,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;