#
…

2026-03-20

00:00fumnanya has quit [Ping timeout: 480 seconds]
00:08mx08 has quit [Quit: WeeChat 3.8]
00:09fumnanya has joined #asahi-alt
00:11mx08 has joined #asahi-alt
00:17fumnanya has quit [Ping timeout: 480 seconds]
01:03john-cabaj has joined #asahi-alt
01:04mixi has quit [Ping timeout: 480 seconds]
01:09st3tc has joined #asahi-alt
01:14mixi has joined #asahi-alt
01:22fumnanya has joined #asahi-alt
01:33fumnanya has quit [Ping timeout: 480 seconds]
01:45st3tc has quit [Quit: Textual IRC Client: www.textualapp.com]
01:46st3tc has joined #asahi-alt
01:49st3tc has quit []
02:07ipatch has quit [Quit: WeeChat 4.8.1]
02:09ipatch has joined #asahi-alt
02:21tjemke2 has joined #asahi-alt
02:27tjemke has quit [Ping timeout: 480 seconds]
02:27tjemke2 is now known as tjemke
02:55fumnanya has joined #asahi-alt
03:05fumnanya has quit [Ping timeout: 480 seconds]
03:23john-cabaj1 has joined #asahi-alt
03:28john-cabaj has quit [Ping timeout: 480 seconds]
03:28john-cabaj1 is now known as john-cabaj
03:50st3tc has joined #asahi-alt
03:51st3tc has quit []
03:52fumnanya has joined #asahi-alt
03:57tobhe_ has joined #asahi-alt
04:04tobhe has quit [Ping timeout: 480 seconds]
04:08vimproved has quit [Ping timeout: 480 seconds]
04:19fumnanya has quit [Ping timeout: 480 seconds]
05:00vimproved has joined #asahi-alt
05:27john-cabaj has quit [Ping timeout: 480 seconds]
05:48[KongrooParadox] has joined #asahi-alt
05:49KongrooParadox has quit [Ping timeout: 480 seconds]
07:32fumnanya has joined #asahi-alt
07:46nnym_ has joined #asahi-alt
07:46nnym has quit [Read error: Connection reset by peer]
08:16paul12688 has quit [Quit: Connection closed for inactivity]
08:37fumnanya has quit [Ping timeout: 480 seconds]
08:47fumnanya has joined #asahi-alt
08:53fumnanya has quit [Read error: No route to host]
09:03rzhikharevich has quit [Ping timeout: 480 seconds]
09:06lukeleppan has quit [Read error: Connection reset by peer]
09:06lukeleppan has joined #asahi-alt
09:15rzhikharevich has joined #asahi-alt
10:32fumnanya has joined #asahi-alt
10:40mixi has quit [Ping timeout: 480 seconds]
10:54mixi has joined #asahi-alt
10:59fumnanya has quit [Ping timeout: 480 seconds]
11:00fumnanya has joined #asahi-alt
11:01lynndotpy7 has quit [Quit: bye bye]
11:03lynndotpy7 has joined #asahi-alt
11:16mixi has quit [Ping timeout: 480 seconds]
11:28mixi has joined #asahi-alt
11:51fumnanya has quit [Ping timeout: 480 seconds]
12:01fumnanya has joined #asahi-alt
12:11fumnanya has quit [Ping timeout: 480 seconds]
12:23KongrooParadox has joined #asahi-alt
12:26[KongrooParadox] has quit [Ping timeout: 480 seconds]
12:48fumnanya has joined #asahi-alt
13:02fumnanya has quit [Read error: No route to host]
13:22hamr8 has joined #asahi-alt
13:31ACG_ has quit [Remote host closed the connection]
13:35john-cabaj has joined #asahi-alt
14:21fumnanya has joined #asahi-alt
15:09john-cabaj has quit [Ping timeout: 480 seconds]
15:40fumnanya has quit [Ping timeout: 480 seconds]
15:52Juest has quit [Remote host closed the connection]
16:01Juest has joined #asahi-alt
16:53ipatch has quit [Quit: WeeChat 4.8.2]
16:54ipatch has joined #asahi-alt
17:14mattia013_ has joined #asahi-alt
17:17mattia013 has quit [Ping timeout: 480 seconds]
17:17mattia013_ is now known as mattia013
17:47john-cabaj has joined #asahi-alt
18:48Anonymous[m]12 has joined #asahi-alt
19:10Anonymous[m]12 has left #asahi-alt [User left]
19:52paul12688 has joined #asahi-alt
19:52fumnanya has joined #asahi-alt
19:56smn has joined #asahi-alt
20:05smnHey! I recently got an M2 Air and i installed Asahi NixOS, and it has been a blast but i've been struggling with setting up muvm+fex, especially with the flakes made by other people since i'm way too dumb to set up one by myself. I've been experimenting with https://github.com/imnotpoz/nixos-muvm-fex/tree/native-build , and updating it so that it uses the freshest available packages (at least the ones that aren't locked to a specific commit). With how
20:05smnOh it limits the text
20:05smnMy bad
20:05smnWith how much cross compilation i've done and with how many issues i've ran into i decided to pop in here and ask around if anyone else has tried that and maybe succeeded...?
20:05smnSo far i couldn't wrap my head around how muvm and fex go together, what rootfs am i supposed to configure, and the worst part is getting it to work declaratively in my flake config.
20:05smnTLDR; Need help with setting up muvm+fex on my Asahi NixOS M2
20:08chaos_princessNot really sure how nix specifically does it, but at some point something (probably a rootfs package) will produce erofs disk images in a location that muvm expects them to be. muvm will then automatically mount them on start and inject things into fex configuration
20:08chaos_princessthat is how fedora does it
20:10smnThe thing that still doesn't click in my head is since we need muvm tu run fex on asahi, the rootfs needs to have x86 and x64 mesa, and the flakes i've seen try to build the rootfs on their own by providing mesa themselves, and because of how nix works i needed to cross compile every single package that each respective mesa needed to build
20:11chaos_princessthat sounds pretty dumb to offload to end-user
20:11chaos_princessare there no binary packages?
20:12smnWell... Because of how the nix binary cache works, cross compiled packages don't register as the same package as the one built on the actual architecture because they use a diffrent build process, even if they produce the same binary
20:13smnThat being said, nix does provide the binaries for muvm, fex, mesa and all that jazz, (even the custom mesa made by asahi with the external cache) the cache just misses them whentrying to build the system declaratively
20:14smnAnyways, what you're saying is i should try the newest fex, newest muvm, run FEXRootFSFetcher, grab fedora and it'll... just work?
20:14chaos_princessprobably not, but maybe it will.
20:14chaos_princessx86 rootfs is an overlay on your base filesystem, and nix probably has opinions on what goes where
20:15chaos_princessi maintain the gentoo's fex packages and there i just gave up, built the entire thing on a x86 system and am distributing it as a pre-made squashfs image
20:16chaos_princessthe rootfs that is, everything else gets built on user
20:16smnSo how does asahi's mesa fit into that equation?
20:17smnDo you just use it as the mesa inside of the rootfs?
20:17chaos_princessit doesn't, since "asahi mesa" kinda no longer exists
20:17chaos_princessthere is just mesa
20:17smnOh...?
20:17chaos_princessit is fully upstream
20:18smnDang okay, ince
20:18chaos_princessi think fedora still has "asahi mesa", which is binary identical, but can't/couldn't be replaced by "just mesa" due to dnf limitations
20:24smnOkay, so if you were to run for example a simple hello world inside of muvm that uses fex, what would the command look like?
20:24smnBecause i'm kinda struggling to understand how muvm works at all
20:25chaos_princessit is basically a vm that uses linux magic to share the host's filesystem and the graphics stack
20:26chaos_princessso, `muvm whatever` will spin up the vm, run `whatever` using the default shell, and then power down the vm
20:27smnAnd given that i do have a simple hello world x64 binary to test on, i would just run `muvm /path/to/hello` and that should spin up a vm, try to use the fex on my system to parse the x64 to ARM, then run the binary in the vm passing through everything... right?
20:28chaos_princesssomething like that.
20:28chaos_princessjust notice that it among other things does not preserve the current working directory, so you might want to use absolute paths everywhere
20:29chaos_princessor run `muvm bash` to just get a shell in that vm
20:29smnNo IPv6 nameserver available for NDP/DHCPv6
20:29smnError: Failed to create the microVM
20:30smn Invalid argument (os error 22)
20:30chaos_princesswhat is your command
20:30smnmuvm bash
20:30smn`/etc/profiles/per-user/bruno/bin/bash`
20:31chaos_princess`readlink /etc/profiles/per-user/bruno/bin/bash`
20:31smn`/nix/store/im7dnpp41kkj8vzcw1bizxg4afjqqfn9-home-manager-path/bin/bash`
20:31chaos_princess`muvm that-thing-above`
20:32smnSame ipv6 error, same failure to create VM, same error 22
20:32chaos_princessipv6 is irrelevant
20:32chaos_princesstry `muvm -e PATH bash`
20:32smnFailed, error 22
20:33chaos_princessi am blaming nix for being weird
20:34smnFair honestly
20:35smnI'll try running it in a fhs compliant environment
20:41fumnanya has quit [Ping timeout: 480 seconds]
20:42fumnanya has joined #asahi-alt
20:42smnOkay i did `muvm -- /path/to/hello` and got a hello world
20:44smnHow exactly could i tell that the bash i'm running through muvm is actually running in muvm?
20:44smnI did uname -a and it still shows me aarch64, and i'm not sure if it should do that
20:44chaos_princessit should, muvm just launches an aarch64 vm
20:44jannaukernel version should be 6.12.x
20:45chaos_princessif you want x86 bash - run FEXBash in muvm
20:45smnOKay, it did show me a 6.12 kernel
20:45smnWe're getting somewhere
20:48smn has quit [Remote host closed the connection]
21:00smn has joined #asahi-alt
21:00smn`$ muvm -- $(realpath $(which steam))` got me to `Failed to exec stage 2 init: Exec format error`
21:00smn"/nix/store/ns5cbixcly4inlwr7dj3rh5zc1dgjxcn-steam-1.0.0.85-bwrap" process exited with status code: 1
21:00chaos_princessit is not setting up binfmt_misc correctly for some reason
21:01smnWhich part of the entire circus should be responsible for that?
21:01chaos_princessmuvm should do it if it finds fex
21:02chaos_princessso it is probably not finding it
21:02smnHow do i pass in fex as a forced argument?
21:02chaos_princess--emu=path-to-fex-goes-here i guess
21:04smnThe FEX executable, right?
21:05smnError: couldn't parse `/nix/store/bx3ngi9ma1r6m5k5ih40h337s0c3nxdd-fex-2601/bin/FEX`: Invalid or unsupported emulator
21:05smnThe command i'm running is `$ muvm --emu=$(realpath $(which FEX)) -- $(realpath $(which bash))`
21:06neobrain[m]I vaguely recall fex binfmt not setting up properly in muvm if fex is not in PATH when launching muvm
21:06chaos_princessthat is what is happening
21:06chaos_princessi am just not sure how to make nix's weirdness and muvm work together
21:07smnI can handle the nix weirdness, i just need to know what goes where lol
21:07neobrain[m]Oh, apologies
21:07smnI know that nix can be confusing
21:07chaos_princessdon't you people patch everything to be able to use your weird path layout?
21:07neobrain[m]smn: Try doing what you do now, but do it from a nix shell?
21:07chaos_princessit is set up here
21:08smnFEXInterpreter as the argument also fails as an unsupported emulator
21:09chaos_princessnot what i am suggesting. you need to either somehow ensure FEXInterpreter is in PATH when in muvm guest, or teach muvm to look in the nix store
21:11FlameFlag has joined #asahi-alt
21:12smnneobrain[m]: Same issue unfortunatelly
21:13smnchaos_princess: It's weird that even though it is included in the build process, it fails on my end
21:14smnAnd i did make sure to run those two packages from unstable so there's no way i'm just running an old version of the build process
21:14smnBy that i mean fex and muvm
21:14chaos_princessis nix patching them
21:14chaos_princessor just builds what is there
21:14chaos_princesssince as-is, they expect a normal system
21:15FlameFlagthey're patched to point to nix store
21:16chaos_princessnot seeing a patch to fex.rs
21:16chaos_princesssince that is what sets up binfmt_misc
21:19neobrain[m]It does seem to put FEXInterpreter into PATH at least (via wrapProgram)
21:22smnI do have all the FEX binaries in my path as a user
21:24neobrain[m]Would it help you to have muvm running without binfmt_misc at least?
21:25smnSo i would have to pass FEX manually as part of the command, right?
21:26neobrain[m]yeah, or run FEXBash and then your command inside of that
21:26chaos_princesswill that get steam working?
21:26chaos_princesssince it calls helpers
21:26neobrain[m]chaos_princess: maybe, not sure I ever tested that far with this setup
21:27chaos_princessneobrain[m]: null emulator isn't useful, muvm will start up fine with no emulator
21:27neobrain[m]Did they test that FEX at least works at all with a null emulator set though?
21:28smnmuvm --emu= -- $(realpath $(which bash))
21:28smnError: couldn't parse ``: Invalid or unsupported emulator
21:29chaos_princessneobrain[m]: if there is no emulator set up, muvm will just skip setting up binfmt
21:29neobrain[m]chaos_princess: That's not how `--emu` works. It only takes "fex" or "box" (or "null" with my patch)!
21:29FlameFlag has quit [Quit: Page closed]
21:29chaos_princessyou can in theory do it manually later
21:30chaos_princesswell, the manual set up is a bit annoying since you don't have root, but doable
21:31ipatch_ has joined #asahi-alt
21:31ipatch has quit [Remote host closed the connection]
21:31neobrain[m]Not sure why I had the null emulator patch locally then, maybe to force skipping binfmt_misc setup in case FEX is in path?
21:34smnThe only thing making me surprised now is that hello world does work when ran under muvm+fex, which to me suggests that the muvm+fex thing is working
21:34smni tested a system without fex, and the hello program refused to run
21:34smnWhich is good
21:34smnI have no clue why steam wouldn't work though
21:35chaos_princessmind running `file /nix/store/ns5cbixcly4inlwr7dj3rh5zc1dgjxcn-steam-1.0.0.85-bwrap`
21:36smn`/nix/store/ns5cbixcly4inlwr7dj3rh5zc1dgjxcn-steam-1.0.0.85-bwrap: a /nix/store/6ph0zypyfc09fw6hlc1ygjvk2hv4j9vd-bash-5.3p3/bin/bash script, ASCII text executable, with very long lines (414)`
21:37chaos_princessi wonder what exactly fails with exec format error then
21:38smnIf it makes it any better, spotify gives me
21:38smnInvalid or Unsupported elf file. This is likely due to a misconfigured x86-64 RootFS Current RootFS path set to '/home/bruno/.fex-emu/RootFS/Fedora_43' "/nix/store/yq1as2p25z7h6bs0h074mdic58s018rh-spicetify-stylix/share/spotify/spotify" process exited with status code: 248
21:38neobrain[m]Yes, I was about to ask. You didn't actually set up a rootfs yet, did you? Steam would require one
21:39neobrain[m]your hello app was working because it was a nix-built binary that can fetch all required x86 libs from the nix store; Steam not being nix-built prevents that from happening, so it needs a normal rootfs
21:39smnI got the rootFS by running FEXRootFSFetcher and getting the erofs fedora 43
21:39smnI could try experimenting with other ones
21:39neobrain[m]Are you sure FEX sees that rootfs? muvm overlays a config that might hide it
21:41neobrain[m]though if you entered the RootFS in your ~/.config/fex-emu/Config.json, it should take priority IIRC
21:41smn$ cat ~/.fex-emu/Config.json {"Config":{"RootFS":"Fedora_43"},"ThunksDB":{}}
21:42smnWhat exactly do you mean by the part that muvm overlays a config
21:44vimproved has quit [Remote host closed the connection]
21:45vimproved has joined #asahi-alt
21:45smnI think i have two fex configs when running bash inside of muvm. One at ~/.fex-emu/ and another one at ~/.config/fex-emu/
21:45neobrain[m]FEX has a layered configuration system, where Config sets from different sources are added on top of each other to build the actual config used at runtime. muvm uses a different layer in that stack than what's in Config.json, but I think Config.json still applies last and hence takes priority
21:47smn$ cat ~/.fex-emu/Config.json {"Config":{"RootFS":"Fedora_43"},"ThunksDB":{}}
21:47smn$ cat ~/.config/fex-emu/Config.json {"Config":{"Environment":"Host","RootFS":"/home/bruno/.fex-emu/RootFS/Fedora_40.sqsh","MaxInst":50,"BlockJITNaming":true,"Threads":8}}
21:47smnI'm so lost
21:48neobrain[m]Are you running fex-2603 or 2601? With 2603, ~/.fex-emu is soft-deprecated. With 2601, it wouldn't read ~/.config/fex-emu/Config.json at all
21:48chaos_princesssmn: muvm config only materializes inside muvm, it does not exist on host system
21:49smnI'm running 2601
21:49neobrain[m]ok, should be all good then. Maybe worth trying changing the RootFS option to an absolute path, but I don't think it would make a difference
21:50neobrain[m]actually it certainly won't make a difference, since the error message indicates it's already finding the rootfs
21:53smnJust to be safe and sound i deleted both config folders, then got the rootFS again. Now my config is only in ~/.fex-emu
22:02paul12688 has quit [Quit: Connection closed for inactivity]
22:10smnI'm so out of ideas
22:12john-cabaj has quit [Ping timeout: 480 seconds]
22:22fumnanya has quit [Read error: Connection reset by peer]
22:23fumnanya has joined #asahi-alt
22:29smnShould i ask around somewhere else...?
22:32JamesCalligeros[m]Other nix users hang around here so maybe just wait till they show up
22:37fumnanya has quit [Ping timeout: 480 seconds]
22:45fumnanya has joined #asahi-alt
22:53fumnanya has quit [Ping timeout: 480 seconds]
23:05smn has quit [Remote host closed the connection]
23:15[KongrooParadox] has joined #asahi-alt
23:18KongrooParadox has quit [Ping timeout: 480 seconds]
23:48chadmed_ is now known as chadmed
…