News for hackers. Stuff that matters.
Re:NixOS 22.11 “Raccoon” Released by speed_spread on Thursday December 01, 2022 @09:17AM (#33816489)
If Nix is too much but you still want an immutable distro, look into Fedora Silverblue (or Kinoite). It offers some of the advantages of Nix in a more approachable fashion.
Re:NixOS 22.11 “Raccoon” Released by AnIdiotOnTheNet on Thursday December 01, 2022 @09:38AM (#33816765)
Seconding this. I ran Silverblue until recently due to some bugs in Kinoite but switched as soon as possible because GNOME sucks.

Its the first distro I've used in 20 years that doesn't feel like a stiff wind could cause the whole thing to collapse and catch fire in an unrecoverable way, while still allowing me to run any software I want instead of just what is in some limited curated repo. And unlike Nix, I didn't need to learn a new language to use it.

Re:NixOS 22.11 “Raccoon” Released by smoldesu on Thursday December 01, 2022 @09:40AM (#33816795)
Does Silverblue still support traditional package managers? An immutable OS seems nice and I like Bubblewrap's isolation, but I would never switch full-time to an all-Flatpak distro...
Re:NixOS 22.11 “Raccoon” Released by enticeing on Thursday December 01, 2022 @10:05AM (#33817131)
You can install all the usual software from the Fedora repos, but you need to do a reboot before you can use it. See the Package Layering section here: https://docs.fedoraproject.org/en-US/fedora-silverblue/getti...
Re:NixOS 22.11 “Raccoon” Released by speed_spread on Thursday December 01, 2022 @03:40PM (#33822404)
(for other readers) One only needs to reboot if modifying the base OS image ("layering" packages in ostree parlance). This is only required for packages that require low-level integration - services, virtualization, drivers. The big Silverblue idea is that you should make maximum use of flatpaks and "toolbox" containerized environments, all which "float" over the base OS. Once everything's been "layered" to your liking, you rarely touch the base OS anymore except for updates.
Re:NixOS 22.11 “Raccoon” Released by AnIdiotOnTheNet on Thursday December 01, 2022 @10:15AM (#33817286)
In addition to the sibling comment about layering, this is largely what toolbox is for. Essentially you create containerized environments with a lot of integration (you can run GUI apps from them) and install whatever you want in those.

  toolbox create new_dev_env_or_whatever
  toolbox enter new_dev_env_or_whatever
  dnf install all_the_things
And now you've got a container with whatever installed. To use it you do have to use `toolbox enter` or `toolbox run` though. Distrobox is basically the same thing for people who don't use Fedora.

I have my issues with both Flatpak and Toolbox as far as how they're put together and work, but overall I find it to be a vast improvement on the status-quo way of doing things. YMMV, of course.

Re:NixOS 22.11 “Raccoon” Released by smoldesu on Thursday December 01, 2022 @10:16AM (#33817312)
Interesting, that's much better than what I assumed. NixOS' composition tools are fairly similar, at least in scope.
Re:NixOS 22.11 “Raccoon” Released by speed_spread on Thursday December 01, 2022 @03:43PM (#33822448)
I found distrobox to be useful even on Fedora. For some reason running CLion under a plain toolbox resulted in very frequent system-wide pauses lasting several seconds.
Re:NixOS 22.11 “Raccoon” Released by AnIdiotOnTheNet on Thursday December 01, 2022 @06:08PM (#33824324)
I had the same issue on Kinoite 35 specifically, but only with GTK applications. That forced me to Silverblue at the time, but 37 seems to have ironed out whatever it was.
Re:NixOS 22.11 “Raccoon” Released by piaste on Thursday December 01, 2022 @10:24AM (#33817442)
Yes, you use 'rpm-ostree' to install and manage regular dnf packages, or local .RPM files.

The limitations are:

1) Each invocation of the package manager (install/upgrade/uninstall, the usual stuff) results in a new OS 'commit' and requires a reboot to switch to it.

This is the entire point of the distro (random .rpm broke your system? just rollback), and is why Silverblue users generally only use DNF packages for low-level tools and run regular applications as flatpaks, appimages, or podmans.

2) Occasionally you'll run into a package that wants to write to a folder that Silverblue made read-only and version-controlled, and breaks. In that case your only options are to run the package inside a toolbox (a special Podman container that comes with Silverblue for these scenarios), or patching the package.

Re:NixOS 22.11 “Raccoon” Released by pxc on Thursday December 01, 2022 @12:29PM (#33819469)
Never mind traditional package managers... you plug it in right, you can run Nix on Silverblue!

https://gitlab.com/ahayzen/silverblue-nix

NixOS people will prefer NixOS, but Silverblue seems like a nice complement to Nix if you need an FHS base system and want to retain some Nix-ish features like rollbacks and atomic upgrades.