I'd like to run some aarch64 services on a x86_64 :nixos: #NixOS machine. Apparently the (undocumented?) emulatedSystems config helps setting up binfmt_misc for transparent emulation, that's awesome. Here it's described how to grab nixpkgs for a different architecture to use the cache: https://nixos.wiki/wiki/Cross_Compiling . Now how do I have e.g. aarch64 gitlab-runner run as a systemd service?

On #Archlinux this is all very tedious and fragile. I have high hopes it isn't on :nixos: #NixOS 😁

Reply to this note

Please Login to reply.

Discussion

nostr:npub16mtxp68k8c3p2sj0wzhagt3kd8ywkvzlkfyt3vrx9cahzfz000vs8dpnwy

I do not know anything about this specific case, but cross-compilation is so niche most of the time. I wanted to build aarch64 NixOD images öfor my phone on my x86 machine but it didn't work due to some differences how booleans work.

Wishing you good luck though. I might keep an eye on this topic if you have success.

#archlinux #nixos