{ pkgs, lib, config, ... }: { nixpkgs.overlays = [ (final: super: { # TODO: remove after liburing-2.1 liburing = super.liburing.overrideAttrs (old: { src = super.fetchgit { url = "http://git.kernel.dk/${old.pname}"; rev = "cb350a8989adbd65db574325d9a86d5437d800da"; sha256 = "sha256-ZMev2RjiswuR9seVwHbnVUtnpaPW/XJbelBgvIuYiGg="; }; }); gnupg = super.gnupg.override { # Wants polkit which wants spidermonkey (slow to compile) pcsclite = null; }; systemd = super.systemd.override { # Wants tpm2-tss which does not cross-compile withTpm2Tss = false; # Does not cross-compile :( withEfi = false; }; # https://logs.nix.samueldr.com/nixos/2019-07-23#2416964; xorg = super.xorg.overrideScope' (ofinal: osuper: { fontadobe100dpi = final.hello; fontadobe75dpi = final.hello; fontcursormisc = final.hello; fontmiscmisc = final.hello; }); # Perl's ModuleBuild does not cross-compile # https://github.com/NixOS/nixpkgs/issues/66741#issuecomment-944831760 xdg-utils = final.hello; procmail = final.hello; noto-fonts-emoji = final.hello; x11_ssh_askpass = final.hello; dconf = super.dconf.overrideAttrs (old: { doCheck = false; }); # Need gobject-instrospection which does not cross-compile arandr = final.hello; # Depends on judy which does not cross-compile stress-ng = final.hello; }) ]; #environment.noXlibs = true; fonts.fontconfig.enable = false; # lesspipe does not cross-compile programs.less.enable = lib.mkForce false; programs.mosh.enable = false; programs.traceroute.enable = false; security.apparmor.enable = false; services.udisks2.enable = false; }