Gabriella439 / nixos-in-production

Source files for the book "NixOS in Production"
Other
485 stars 20 forks source link

forgetting to stage flakes? #18

Closed shapr closed 1 year ago

shapr commented 1 year ago

https://github.com/Gabriella439/nixos-in-production/blob/02bd036f43417d5c33a8d4442d55ac6fe8897c86/manuscript/Modules.md?plain=1#L416

I like to record my work in a git repo, and I'm vaguely aware that I must stage flakes for them to be found. I haven't seen this mentioned in the book, maybe I missed it? Or maybe this only applies if I'm on a NixOS system?

Anyway, you may want to put a note in somewhere that says:

If you are doing this as a workshop in a git repo and you get a message like error: getting status of '/nix/store/r0i2v5rv40w24aqsiszi9ixmgmxzy4xx-source/evalModules': No such file or directory you may want to stage your *.nix files so the nix executable can find them.

shapr commented 1 year ago

Thank you!

Gabriella439 commented 1 year ago

You're welcome!