diff --git a/modules/common/core/system/emulation/default.nix b/modules/common/core/system/emulation/default.nix index 653c37d0a..b4032a439 100644 --- a/modules/common/core/system/emulation/default.nix +++ b/modules/common/core/system/emulation/default.nix @@ -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"; - }; }; }; }; diff --git a/modules/options/system/emulation.nix b/modules/options/system/emulation.nix index 179f8f7da..01250d3c0 100644 --- a/modules/options/system/emulation.nix +++ b/modules/options/system/emulation.nix @@ -1,4 +1,8 @@ -{lib, ...}: let +{ + lib, + pkgs, + ... +}: let inherit (lib) mkEnableOption mkOption types; in { options.modules.system.emulation = { @@ -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 '';