On rpm-ostree Distros, could one do something like ln -s /var/nix /nix on every boot to make this work? Where would that be done, in the fstab, or using a systemd service?
Does nix autostart something that would make this difficult, where the symlink needs to be added before?
I think adding nix to immutable Fedora versions could have some benefits, for example that it doesnt use user namespaces, which are disabled in the hardened kernel. Flatpaks can work here, using bubblewrap-suid but Podman and all the tooling like Toolbox and Distrobox don’t work yet.
Nix also has a ton of packages, more than the AUR I heard, especially more supported ones. You can run entire Desktops from Nix, add unstable packages to stable Variants (if they ever come with rpm-ostree) and more.
Do you know if this is possible? I would anyways like to try it, but already fail with installing it, as it is not an rpm, but built locally afaik. So this would probably need to be done in the image creation process, for example for ublue?
I wouldn’t expect to see it in an atomic desktop any time soon, I think the many drawbacks of nix far outweigh the miniscule benefits especially when distrobox/vms let you do the same; but alas if you’re so inclined Nix on Fedora · GitHub
I have run Guix on Silverblue, but I didn’t do much with it there since I was so interested in Guix that I installed GuixSD onto one of my older laptops.
Do you have the installation procedure somewhere? I assume you used something like this Nix installer script that sets up bind mounts for the store, but Guix probably has subtle differences.
Hello @lmhpfr ,
Sorry for that, I checked what I had written down about it to answer, and it was on WS (workstation) and I made a partition mounted at /gnu specifically for it. It was the same time I started using Silverblue on my primary workstation, and I guess that made a connection in my mind, so back around F27. It did spur me on to install GuixSD onto an older laptop, though.
Just while on the topic of Nix, is it more popular because there are more packages available in Nix?
This is nice, but nests nix inside a fedora container. So it is not perfect, home-manager likely doesnt work? And as it uses a container it causes higher RAM usage.