and discourse announcement: https://discourse.nixos.org/t/nixos-19-09-release/4306
apologies for the tags, I couldn’t find “nix” or “nixos”
After this release was announced, @cmb spent the day putting together a netboot installer for it, such that a 19.09 install image is now available as a menu option from the prgmr.com management console. I hope that’s a useful way for some of you to try this release out.
Interestingly enough, while preparing this installer, we had to work around a bug that we’ve also seen a variant of in Debian where the nixos user is logged in to multiple consoles (ttyS0, hvc0, tty1) leading to potential race conditions as commands are run on all of them. We’ll file a ticket upstream shortly.
NixOS is a Linux distro, so I suggest ‘linux’ tag.
only tangentially related, but does anyone have a good guide on shipping a nix expression with a project to allow people to set up a dev environment for a project without going through docker/VM? It seems really good tool for that but most guides I find seem to be more for whole system management than “just install some stuff on some machine”
The keyword you’re interested in is nix-shell.
Good luck! :)
Sounds like guix environment. Are they the same?
Yep, modulo flags and defaults, although nix-shell only drops you in a shell (guix environment can also create a container).
I don’t know guix at all, and only somewhat know nix. Maybe somebody more knowledgeable can chime in? But via naming, I’d guess probably yes…
Probably a dumb question, but can the user level unionfs mounts be used in a similar way to what Nix does with symbolic links? For example, say:
pkg1.sha1 depends on lib1.v1.sha2 and lib2.v1.sha3, and pkg2.sha2 on lib1.v2.sha4
When building pkg1.sha1, union mount pkg1.sha1, lib1.v1.sha2 and lib2.v2.sha3 to a directory dir.sha7, chroot to dir.sha7 so that the libraries are in the correct place, and invoke build commands. Similarly, when using commands pkg1.sha1, use the same procedure.
Similarly for pkg2.sha2, union mount pkg2.sha2, and lib1.v2.sha4.
Well, there is distri, covered here: https://lobste.rs/s/yiumwr/distri_linux_distribution_research_fast
Thanks for the link. I will check that out.
Hah I’m building a package builder for a Linux distro experiment and plan to do exactly this.
Any chance for a link? I am extremely interested :).
There’s nothing public yet. It’s a spare time project that’s has been bumped temporarily for another side project. I jot down thoughts at https://uld.wezm.net/ from time to time.
Thanks, much appreciated.
It’s not a dumb question at all.
One of the downside is that creating new user namespaces, and then mounting all the dependencies is relatively expensive compared to resolving symlinks. It also restricts the usage of the package manager to Linux since other kernels don’t tend to have that feature available (except Plan9).
The Nix approach is a bit simpler to implement, and also is more composable because it works with both programs and configuration files.