Skip to content

Commit

Permalink
fix(emulation): dont emulate x86_64 as it breaks aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Sep 4, 2023
1 parent be05b9f commit 6bd7f05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 0 additions & 5 deletions modules/common/core/system/emulation/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ in {
i686-linux = {
interpreter = "${pkgs.qemu}/bin/qemu-i686";
};

# x86_64
x86_64-linux = {
interpreter = "${pkgs.qemu}/bin/qemu-x86_64";
};
};
};
};
Expand Down
8 changes: 6 additions & 2 deletions modules/options/system/emulation.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{lib, ...}: let
{
lib,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkOption types;
in {
options.modules.system.emulation = {
Expand All @@ -12,7 +16,7 @@ in {

systems = mkOption {
type = with types; listOf str;
default = ["x86_64-linux" "aarch64-linux" "i686-linux"];
default = builtins.filter (system: system != pkgs.system) ["aarch64-linux" "i686-linux"];
description = ''
the systems to enable emulation for
'';
Expand Down

0 comments on commit 6bd7f05

Please sign in to comment.