<chepner>
% nix build --file ./postgrest-tutorial.nixerror: assertion (stdenv).isLinux failed at /nix/store/5c45nyf2kwjq40lz4nfycwkhjwg21rhn-source/pkgs/os-specific/linux/kernel/generic.nix:66:1(use '--show-trace' to show detailed location information)
<chepner>
sorry, that was after trying a naïve replacement of "x86_64-linux" with "x86_64-darwin"
<chepner>
% nix build --file ./postgrest-tutorial.nix[0.0 MiB DL]error: a 'x86_64-linux' with features {} is required to build '/nix/store/gn7822yab6gxpr8b1f616krn41hd2v4n-append-initrd-secrets.drv', but I am a 'x86_64-darwin' with features {benchmark, big-parallel, nixos-test}
<chepner>
i don't know if this is something with appnd-initrd-secrets that could be fixed, or a deeper issue with trying to create a nixos VM
<abathur>
chepner: I assume you need a x86_64-linux remote builder (whether literally remote, or in a vm/container) to build it from macOS
<abathur>
and I guess "build[ing] it from macOS" is a bit of a misnomer in that case
<chepner>
yeah, I think that's what confuses me. I thought the derivation (?) I'm building is something that will be run *in* a linux VM, not something that needs a Linux Vm to be built.
<LnL>
no, nix has nothing to do with vms
<chepner>
once the build succeeds, the next command would be "QEMU_NET_OPTS='hostfwd=tcp::3000-:3000' result/bin/run-nixos-vm", which is what (I thought) would spin up the necessary VM.
<LnL>
it's possible in principle, like the binfmt black magic on linux but there's nothing like that specifically for nix
<LnL>
nixos has a feature which builds a vm of a system instead of applying it, but building everything is native
hedgie has joined #nix-darwin
hedgie__ has joined #nix-darwin
hedgie_ has quit [Ping timeout: 260 seconds]
hedgie has quit [Read error: Connection reset by peer]
<chepner>
thanks all, i had set up a remote docker builder, but apparently never had it active while trying to build this particular expression. it's currently building again...
philr has joined #nix-darwin
<chepner>
sigh. that built everything, but the end result is something that tries to run Linux ELF files for bash and qemu. if what i'm trying to do is possible, it would require a change to... the nixos package?