matthewbauer / nixiosk

Declarative Kiosk systems built with NixOS
MIT License
141 stars 12 forks source link

Could I build a PXE image with this? #14

Closed bbigras closed 4 years ago

bbigras commented 4 years ago

I would like to be able to have a derivation that I would use directly with services.pixiecore.

For x86_64.

matthewbauer commented 4 years ago

I don't think it would be too hard - we just need a "pxe" boot target.

matthewbauer commented 4 years ago

I have a WIP pxe support here: https://github.com/matthewbauer/nixiosk/pull/15

Could you check it out? I'm not 100% familiar with how pxe is supposed to work, but it is at least able to invoke pixiecore for you.

bbigras commented 4 years ago

Oh awesome. Is there also a way to test with qemu?

EDIT: I mean test nixiosk with qemu, and when happy generate the pxe thing.

matthewbauer commented 4 years ago

Oh awesome. Is there also a way to test with qemu?

EDIT: I mean test nixiosk with qemu, and when happy generate the pxe thing.

I think that would be possible. I've just been building stuff with VirtualBox since I'm more familiar with that. You might want to try to mess around with https://github.com/matthewbauer/nixiosk/blob/305745dae940718006bf743280158cca4ace7e4a/qemu.sh and see if that can work for you.

bbigras commented 4 years ago

Thank you so much.

I'm running it right now. It's building a lot of stuff even if I'm using https://nixiosk.cachix.org.

bbigras commented 4 years ago

It's weird. It was building for hours and hours.

bbigras commented 4 years ago

Any idea why it had to build so much? I'm using nixos-unstable.

matthewbauer commented 4 years ago

Sorry - yeah there's some significant changes that require a mass rebuild. nixiosk cache was not updated for it, but it should have it now (you may need to do cachix use nixiosk again - i had to change the signing key).

bbigras commented 4 years ago

No worries :smile:

Thank you very much.

bbigras commented 4 years ago

It still has a lot to build. I saw that some things were fetched from the cache but it's still building right now.

Unless maybe it's still using the old cache key. I updated it but I'm using nixus so maybe I did it wrong.

matthewbauer commented 4 years ago

Does nix show-config | grep nixiosk.cachix.org-1:pyzRzjCUhw0r+moXnSklZwwI/gFk+Z+A2ofmEhOf7Sc= give a result? It may also have a slight delay for all of the cache to be recognized by cachix.

bbigras commented 4 years ago

Yes it's there. Weird.

bbigras commented 4 years ago

I got some error:

2020-08-21_08-38

when I hit *:

2020-08-21_08-39

matthewbauer commented 4 years ago

Could you try master? It has a fix for that one.

bbigras commented 4 years ago

It works 😀

But I can't click or use the keyboard. Even if I try the "grab input" option.

Unless it's a kiosk restriction.

EDIT: I tried on wayland with sway and on x11 with gnome.

matthewbauer commented 4 years ago

There was a bug with GTK3 where it wasn't registering inputs. That should be fixed with the update to wlroots 0.12.

I was also able to boot a VirtualBox from pixiecore though!

matthewbauer commented 4 years ago

There was a bug with GTK3 where it wasn't registering inputs. That should be fixed with the update to wlroots 0.12.

I was also able to boot pixiecore on