Commit c82896c2 authored by Ex-32's avatar Ex-32
Browse files

nixos/binfmt: added assertion to prevent emulation of current system

parent 33793dfa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;