Skip to content

Commit

Permalink
Revert "nixos/nix/cross-compiling: do not enable QEMU emulation if Ta…
Browse files Browse the repository at this point in the history
…ilscale is enabled"

This reverts commit 824a57e.
  • Loading branch information
thiagokokada committed Sep 23, 2023
1 parent 824a57e commit 211142d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/nix/cross-compiling.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ in
emulatedSystems = lib.mkOption {
description = "List of systems to emulate via QEMU";
type = lib.types.listOf lib.types.str;
default = lib.optionals (!config.nixos.desktop.tailscale.enable) [ "aarch64-linux" ];
default = [ "aarch64-linux" ];
};
};

config = lib.mkIf cfg.enable {
# Allow compilation of packages ARM/ARM64 architectures via QEMU
# e.g. nix-build -A <pkg> --argstr system aarch64-linux
# https://nixos.wiki/wiki/NixOS_on_ARM#Compiling_through_QEMU
boot.binfmt = lib.mkIf (cfg.emulatedSystems != [ ]) {
boot.binfmt = {
inherit (cfg) emulatedSystems;
};

Expand Down

0 comments on commit 211142d

Please sign in to comment.