<flokli> and the wifi module works. hell yeah :-)
ryantrinkle has joined #nixos-aarch64
<noneucat> i know that you can easily spin up nixos itself in qemu, but i'm wondering if any work has been done to just run nix itself in qemu userspace?
<noneucat> the idea being that if you wanted to build something for aarch64 it might be faster to compile it with user space emulation rather than spinning up a full vm
<flokli> noneucat: there's the whole binfmt stuff
<flokli> look at nixos/tests/systemd-binfmt.nix, it should be pretty self-explanatory ;-)
<flokli> wow, DTBs are wild. both linux and uboot first run the preprocessor with some magic flags on each dts file, because they didn't bother adding support for includes to dtc itself
<noneucat> ahh thank you, this will help
<noneucat> dtbs are scary stuff i only touch whenever i have to :)
rajivr has joined #nixos-aarch64
<flokli> hell, I refuse to replicate this
<flokli> Why does .dtc not simply understand #include? Or why is dtc not somewhat entangled into gcc?
<flokli> I wrote https://github.com/NixOS/nixpkgs/pull/79370#issuecomment-750689505 . Maybe someone else feels more motivated ;-)
<samueldr> flokli: becausue the CPP is just there
<samueldr> because*
<samueldr> (yeah, it's not great)
<flokli> it's super scary
<flokli> having a small wrapper in front of dtc that does this on the fly would be better than this makefile soup
<samueldr> yeah
cole-h has quit [Ping timeout: 246 seconds]
<flokli> Anyone had luck cross-compiling dbus-python?
<flokli> That's apparently required by iwd...
h0m1 has quit [Ping timeout: 258 seconds]
h0m1 has joined #nixos-aarch64
<noneucat> apparently using nix through qemu userspace is as easy as adding the platform to binfmt platforms and setting the system argstr :)
<noneucat> currently building a mobile-nixos deriv to see if everything's working
<noneucat> samueldr: i only had to change a few things in system-target.nix to get things to build, should i make a PR?
<noneucat> the module could check which platforms are loaded by binfmt and choose accordingly
<noneucat> how to build foreign packages
<samueldr> noneucat: what do you mean with "to get things to build"? do you mean for https://github.com/NixOS/mobile-nixos/issues/252 ?
<{^_^}> mobile-nixos#252 (by samueldr, 2 weeks ago, open): error: attribute 'selectBySystem' missing
<samueldr> if so, please do
<samueldr> if it's about binfmt, depends on what it is, bue I guess please do and we'll see
<noneucat> ahhh no, this isn't about that
<noneucat> i'm working off an older nixpkgs
<noneucat> this is about building packages through qemu userspace instead of cross compiling
orivej has quit [Ping timeout: 246 seconds]
<samueldr> note that this will never be a supported method, due to uh... the way this is not great always
<samueldr> but basically you need to make it not-a-cross-compilation
<samueldr> which is currently only detected
<{^_^}> mobile-nixos#57 (by samueldr, 1 year ago, open): Allow disabling cross-compilation auto-detection
<noneucat> ahhh i see! that makes sense :)
<samueldr> I don't know of a good ergonomic way to handle that though
<samueldr> oh, did you try megi's updated branch yet?
<samueldr> I need to do it anyway
<noneucat> currently building it
<noneucat> then i will test things
<samueldr> hopefully (not that likely) it might fix the issue with kexec :|
<noneucat> oh, is there an issue?
<samueldr> yeah, haven't investigated yet
<Gaelan> alright, I've supposedly got a rpi0 sd image
<Gaelan> can't find how many ways this fails to boot
<noneucat> samueldr: submitted https://github.com/NixOS/mobile-nixos/pull/257 for the attr error
<{^_^}> mobile-nixos#257 (by noneucat, 1 minute ago, open): Fix attribute 'selectBySystem' missing
<samueldr> oh, neat, I'll have to look at .elaborate and see what it does, but seems appropriate
<samueldr> thanks for taking the time to look
<noneucat> i haven't built anything w/ the change but it at least parses OK now
<noneucat> np!
dsal has quit [Ping timeout: 260 seconds]
lukego has quit [Ping timeout: 260 seconds]
dsal has joined #nixos-aarch64
lukego has joined #nixos-aarch64
orivej has joined #nixos-aarch64
cole-h has joined #nixos-aarch64
<andi-> samueldr: Just saw that fosshost is now offering arm64 boxes. While we have access to that one packet box maybe it is worth to corrodinate applying there for some compute power? avg current
<andi-> dm-1 - Writes completed 1 iops 1.126K iops 17 iops 37 iops
<andi-> dm-0 - Reads completed 0 iops 1.089K iops 80 iops 5 iops
<andi-> sdb - Reads co
<andi-> pasted the wrong clipboard...
sarcasticadmin has quit [Quit: Idle for 30+ days]
neothefox has quit [Quit: Idle for 30+ days]
cole-h has quit [Ping timeout: 264 seconds]
ib07 has joined #nixos-aarch64
submoo[m]1 has joined #nixos-aarch64
justanotheruser has quit [Ping timeout: 246 seconds]
veleiro has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 246 seconds]
Darkmatter66 has joined #nixos-aarch64
Darkmatter66 has quit [Ping timeout: 260 seconds]
fooker has quit [Ping timeout: 268 seconds]
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos-aarch64
fooker has joined #nixos-aarch64
orivej has joined #nixos-aarch64
alpernebbi has joined #nixos-aarch64
veleiro has joined #nixos-aarch64
orivej has quit [Ping timeout: 260 seconds]
h0m1 has quit [Quit: WeeChat 3.0]
veleiro` has joined #nixos-aarch64
veleiro has quit [Ping timeout: 240 seconds]
veleiro` has quit [Ping timeout: 256 seconds]
cirno-999 has quit [Ping timeout: 240 seconds]
cirno-999 has joined #nixos-aarch64
rajivr has quit [Quit: Connection closed for inactivity]
cole-h has joined #nixos-aarch64
Darkmatter66 has joined #nixos-aarch64
<samueldr> we have the one for community shenanigans
<samueldr> we have more for builders
<samueldr> not saying it's not a good idea to apply
ib07 has quit [Ping timeout: 240 seconds]
ib07 has joined #nixos-aarch64
v0|d has joined #nixos-aarch64
Thra11 has joined #nixos-aarch64
alpernebbi has quit [Quit: alpernebbi]
Raito_Bezarius has quit [Ping timeout: 260 seconds]
Raito_Bezarius has joined #nixos-aarch64
v0|d has quit [Remote host closed the connection]
justanotheruser has joined #nixos-aarch64
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos-aarch64
Darkmatter66 has quit [Ping timeout: 268 seconds]
orivej has joined #nixos-aarch64