matthewbauer / nixiosk

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

Is it possible to use my own derivation instead of a package name string? #17

Open bbigras opened 3 years ago

bbigras commented 3 years ago

It seems that in the json, "package" is for the name of a pkg.

I would like to be able to use something like ./my_app.nix.

My ultimate goal is to be able to build all of this in my configuration.nix.

bbigras commented 3 years ago

I also wonder if there could be a way to use nix files instead of the json file.

matthewbauer commented 3 years ago

If all you care about it building an SD or ISO image, it's possible but wasn't well documented. I've added a section to the docs for this:

https://github.com/matthewbauer/nixiosk#nixos-module--flake-configuration

It provides some packages to build a system. Rebuilding is not exactly clear.

bbigras commented 3 years ago

Sorry for the late reply. Can this work to generate a pxe image?

matthewbauer commented 3 years ago

Yes! For instance see example-pxe in template.

You can try it out with:

nix shell github:matthewbauer/nixiosk -c nixiosk-pixiecore --flake github:matthewbauer/nixiosk\?dir=template#nixosConfigurations.example-pxe
matthewbauer commented 3 years ago

(replacing flake with your own flake config)