svanderburg / nijs

NiJS: An internal DSL for Nix in JavaScript
MIT License
56 stars 4 forks source link

How to bootstrap a system with as much of it being written via NiJS? #3

Open trusktr opened 4 years ago

trusktr commented 4 years ago

Over at https://github.com/svanderburg/nijs/issues/1#issuecomment-50475846, you wrote

This resulting expression could be used by nixos-rebuild to construct a system configuration.

How would one go about bootstrapping a system (say a laptop) and using NiJS code as much as possible?

I'm new to NixOS in general, but it seems like it would be these steps basically (please correct them if needed):

Now this part, I'm not completely sure about: