From 553e8d16e5bb863900f017314586c7338e8f6995 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Wed, 24 Sep 2025 12:09:44 +0800 Subject: [PATCH] fix(WIP): qemu-user-static - too many GOT entries for -fpic, please recompile with -fPIC --- hosts/12kingdoms-shoukei/hardware-configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/12kingdoms-shoukei/hardware-configuration.nix b/hosts/12kingdoms-shoukei/hardware-configuration.nix index a8ed6dc9..ff8ca041 100644 --- a/hosts/12kingdoms-shoukei/hardware-configuration.nix +++ b/hosts/12kingdoms-shoukei/hardware-configuration.nix @@ -31,6 +31,17 @@ in # This enables the kernel to preload the emulator binaries when the binfmt registrations are added, # obviating the need to make the emulator binaries available inside chroots and chroot-like sandboxes. boot.binfmt.preferStaticEmulators = true; # required to work with podman + nixpkgs.overlays = [ + (final: previous: { + # https://github.com/NixOS/nixpkgs/issues/392673 + # aarch64-unknown-linux-musl-ld: (.text+0x484): warning: too many GOT entries for -fpic, please recompile with -fPIC + nettle = previous.nettle.overrideAttrs ( + lib.optionalAttrs final.stdenv.hostPlatform.isStatic { + CCPIC = "-fPIC"; + } + ); + }) + ]; # supported file systems, so we can mount any removable disks with these filesystems boot.supportedFilesystems = lib.mkForce [