Re:Show HN: Devbox – Easy, predictable shells and containers
by ptspts on Friday August 26, 2022 @10:48AM
(#32608240)
It would be great if devbox displayed the recommended command to install Nix upon first run. First users of devbox shouldn't be expected to know the details on how Debian packages Nix.
Re:Show HN: Devbox – Easy, predictable shells and containers
by pxc on Friday August 26, 2022 @11:20AM
(#32608683)
That's a smart workaround. Maybe a
> For the best experience, we recommend installing Nix via the official installer, i.e., via this one-liner:
> > curl | bash, blah blah blah
> (Existing Nix users who have or prefer an alternative setup can still use devbox! See this page about compatibility: [link to a 1/2 page reference doc]
(Happily, the experimental features now experiencing widespread uptake in the community will make some of those differences I outlined less relevant.)
The Nix package for Debian has some other deviations in the way it's plugged into the system and the initial setup. The default channel (source of packages) doesn't get set up for you, the PATH ordering is different, and NIX_PATH and the NIX_PROFILES_PATH (and maybe PATH?) aren't configured for `env_keep` with PAM's `sudo` configuration so interactions with `sudo` are different. Anyway failure to find any packages is probably due to the lack of enabled channels or the setup not being completed (needing that systemd-setup package).
(All of this stuff is up to the maintainers of the Debian package and Debian policy. It's fine, but it violates the assumptions of some third-party Nix tooling.)