{ config, lib, pkgs, ... }: { config = lib.mkIf config.modules.nix.extendedSupport { programs.nix-index-database.comma.enable = true; boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; nix.settings = { extra-platforms = config.boot.binfmt.emulatedSystems; extra-sandbox-paths = [ config.programs.ccache.cacheDir "/run/binfmt" "${pkgs.qemu}" ]; }; }; }