DeterminateSystems / nix-installer

Install Nix and flakes with the fast and reliable Determinate Nix Installer, with over 7 million installs.
https://determinate.systems
GNU Lesser General Public License v2.1
2.21k stars 57 forks source link

Trying to use the determinate nix installed in a fedora toolbox fails #420

Open saolof opened 1 year ago

saolof commented 1 year ago

Just tested this.

Background: Fedora has a concept of toolboxes to avoid installing things globally, by offering an easy interface to mount a fedora container image on top of your home folder, and immutable varations on fedora like silverblue and coreos assume that you only install packages in containers/toolboxes to avoid corrupting the host system, while desktop apps in the host system are handled by flatpaks.

Running the determinate nix installer in a toolbox will fail to install, and will then fail to revert.

Hoverbear commented 1 year ago

Thanks for this background. It's looking like the Fedora variants require a bit of special attention. I think I'll add a note in the readme for now and we'll need to add special support later.

buzmeg commented 3 weeks ago

I'd like to poke this again. I bumped into something similar.

I can install Nix at the OSTree level with the nix-installer (Fedora 40 Silverblue). That seems to work.

If, however, I attempt to run nix-installer inside a toolbox running Fedora 40, that doesn't install and then errors out when trying to uninstall as well.

Are there any directions for making the nix-installer work correctly inside a toolbox?

Thanks.