74 points · by lycopodiopsida · 5y ago · 87 comments
Over flatpaks and snaps, I choose Nix. I really don't want to shove everything I do into per application containers.
Actually, every single bullet point they mentioned is solved in NixOS.
Distinct packages? Check
Immutable OS with trivial and guaranteed roll back? Check
Different applications using different libraries? Check
Pipewire? Check
Different libgl support? Check
The best part is that all of these is possible with the same exact tool. It isn't a hodgepodge of different tools to accomplish different tasks.
One thing NixOS has going for it though is currently having many more users than Silverblue has if comments on HN are any indication (and they probably are) which is probably an effect of its having been around a lot longer. Wikipedia claims that NixOS's initial release was in 2003.
Though it's always been a huge pain to get everything set up (especially things involving graphics), once it's set up it works forever for everyone in the ecosystem.
This sounds nice, but it's the opposite of the Unix philosophy, which will always rub me the wrong way. I thought of systemd this way at first, but then I saw how it was composed of a bunch of different, optional services that can be swapped out for other things fairly easily while still allowing systemd proper to manage and interact with them.
That one thing is building packages in sandboxes and adding them to the nix store. You can see that manual for Nix is actually fairly short: https://nixos.org/manual/nix/stable/
The properties of Nix allow for everything else. This enables NixOS and nixpkgs to exist, and they have much longer manuals:
https://nixos.org/manual/nixos/stable/
https://nixos.org/manual/nixpkgs/stable/
So nix does one thing and does it very well.
Tangent. The "unix philosophy" isn't very true on Linux, and hasn't been since GNU. The problem with "do one thing and do it well" is that very often you need to do more than one thing. You then need to learn a completely different thing to do another basic operation.
Having one tool do literally everything is also unreasonable. But there are natural boundaries for things to exist. It is not unreasonable for the uniq to have a count tool, or for sort to have uniq.
I've been doing this for 20 years now, so I've very comfortable with Linux/Unix tooling. But I see new comers come on. It's often easier for them to script something completely from scratch in python then figure out how to stitch coreutils together.
Nix as a package manager is made up of multiple tools that interact, such as nix-env, nix-store, nix-shell, etc.
NixOS additionally has nixos-rebuild and other commands that are layered on top of those core Nix commands.
I've been using Arch for like 7 years or something now and it just works, probably because of some very hard work by the maintainers.
I personally tried Arch in 2017 for a period of a few weeks, and updates broke my system twice (in different ways). I was able to fix both issues, but decided I didn't want to deal with that. I suspect the difference between the two camps is that those who claim that it doesn't break don't consider something they can fix a breakage.
[1] https://devblog.juangacovas.info/relax-and-recover-bare-meta...
Flatpaks have been awesome, its great seeing the community build on flathub.
Sandboxed and straightforward builds of large packages that may or may not be up to date in debian.
Best way to get packages like Blender or Ardour (I need to package up 1 plugin before I migrate) these days.
Use flatseal to lock things down more or less to your liking.
Pipewire has been a big step up and I look forward to moving to wayland on the rest of my machines with kde 5.24 (vr leasing support).
Great work!
I chose popos, because the second I wanted discord or Spotify on fedora I had to go through a whole page of commands to do it, and it didn't quite run correctly.
When I installed some GUI apps on fedora, they wouldn't show up on the start menu. Had to manually add them, via command line.
Another is media thumbnails. Include ffmpegthumbmailer by default. Don't make me command line basic functionality.
In comparison, Debian in the standard installation feels lacking behind, but I hope it will follow the path.
Immutability is good, splitting the OS from the applications is good, but what that should imply is a commitment to not break anything, and that's not something you can really wrangle from open-source contributors, who are more interested in writing v7, v8, v9, etc. and deprecating everything before them (though I note this is not strictly a Linux problem, we've seen it in npm/pypi/rubygems and we're even now seeing it from even big vendors like Microsoft, Apple, and Google, but it tends to be more associated with FOSS/Linux communities). Flatpak is an attempt at a technical band-aid for a social and cultural problem, but that culture only makes the problem worse, and the solution ineffective.
We see this now manifest in 100 different application distribution formats, all of which have giant tables of "pro's" vs. "con's" on their homepage, all which are fighting for an increasingly miniscule userbase, heightening a war which never should have existed in the first place. Much like the sound server debates of the 2000s, applications can't simply choose one without getting into a large political turf war, and so they have to distribute in every format known to man to quell a userbase each interested in their own ideas of technical superiority. LibreOffice lists Flatpak, Snap, AppImage, alongside all of the individual distribution packages, right on their home page.
This is all to a userbase who's more often interested with tinkering than stability. Linux communities tend to be ones who have self-selected that they want their computers to be toys, rather than tools to just get their jobs done. Or they believe in some form of Linux elitism; that Linux is somehow technically superior to other operating systems, and adapting good ideas from those other systems means losing some form of symbolic war, one which they'll fight hard against. Moving the needle from a fun system that's endlessly tinkerable to a boring system that runs the apps you need and is stable is attempting to move the culture in that direction, and honestly a lot of the desktop Linux community is just uninterested in that vision.
Also, while I was at Red Hat, Colin Walters was probably one of the smartest and most influential people I met, and they're the real powerhouse behind a lot of these ideas (I remember when ostree was hacktree, somewhat made out of frustration so they didn't have to break their laptop while testing new OS versions). Their writing and the conversations I had with them was one of the big things to get me out of the "Linux elitism" spell. I highly recommend their writing on these topics: https://people.gnome.org/~walters/docs/packages.txt https://people.gnome.org/~walters/docs/
So if an app developer wishes to reach those users, they can't rely on this stack to do it. You could ignore those users, sure, but at this point, why are you making a Linux application? It would be much more attractive to deploy on Windows or Mac. If you're trying to convince people to make Linux applications, you need to make it attractive and painless. But you can't solve social and cultural problems; problems of ideological differences, no matter how much you try to patch around it with new technology.
The rest of us like and appreciate flathub.
Linux audio really really needed a better story and pipewire and flathub have really changed that.
I think musicians will suddenly find they can have a reliable quick setup on most any distribution with just these two changes.
(And to be honest, none of this stuff is exciting or new to me. It's just a re-packaging of the technology behind Docker but for desktop apps)
Edit: For LibreOffice it's likely that the project is popular enough that different people all contributed all those packaging options, so I don't think it's like a burden on them or anything. If something stops being maintained they'll just drop it.
This is a great punchline from your first link.
I may try Fedora just for that.
Check out flathub for audio apps, do a "flatpak search lv2" to find the plugins for ardour and audacity.
I always lose karma for espousing this opinion, but it's one I'll happily parrot until the Linux desktop is finally dead again: if your software is exclusively available as a Flatpak, good luck getting me to use it.
>Nothing is less attractive to a user than opening an app to find the ugly Adwaita interface instead of their distro's choice
This is by design and is not fixable in any distro with any packaging system and highlights an underlying problem with any theming. Avoiding flatpak sadly will not fix it :( The only choices really are to disable themes, or patch/remove the package when it breaks with some theme. The first is what flatpak apps will do because they want to work on any distro regardless if the user has a broken theme, the second it seems is what distributions usually do.
>Does your app use MPRIS? Good luck getting it working!
This should be really easy to fix, all you have to do is white list the d-bus path for it. You should consider reporting that as a bug to the flatpak packager also.
>You want configuration files in sane locations? How about we make it a pain in the ass to access your own files instead.
Huh? The config files are just stored in ~/.var/app/. It's not a pain in the ass to access them at all.
Maybe! Let's see how much of it I agree with, first:
> Avoiding flatpak sadly will not fix it
Werks on my machine. All the apps I use (even the GTK4 ones) adopt my system theme perfectly fine as long as I'm not using Snaps/Flatpaks/containerized distribution.
> The first is what flatpak apps will do because they want to work on any distro regardless if the user has a broken theme
They don't need to do this to prevent breakage. GTK has always had fallback stylesheets for this exact purpose, Flatpak has decided to circumvent them because of the Gnome foundation's wheel-spinning "don't theme our app" movement. There's quite literally nothing stopping the Flatpak devs from referring to your systems default stylesheet for all UI draws.
> This should be really easy to fix, all you have to do is white list the d-bus path for it.
That's more work than I have to do on every other version of every package I use
> You should consider reporting that as a bug to the flatpak packager also.
Wait, so now they have two packages to maintain? One being the true binary copy of their application, and the other being a sandboxed version that is apparently more likely to break? That alone is enough to disqualify Flatpak, because it's really just "another competing standard" a-la XKCD.
> Huh? The config files are just stored in ~/.var/app/.
Ah yes, the classic UNIX config directory '~/.var/app/', a directory that never existed until Flatpak came along and decided it was somehow the new standard. Great stuff!
>All the apps I use (even the GTK4 ones) adopt my system theme perfectly fine as long as I'm not using Snaps/Flatpaks/containerized distribution.
That's great for you, unfortunately this cannot be guaranteed for all combinations of themes and apps. There are "tricks" you can do to get your themes to work in a flatpak such as mounting the theme directory into the container but this would probably be considered an unsupported hack, I wouldn't recommend it. The only way this could ever be supported is if somebody tested your theme with every version of every flatpak app and then filed/fixed bugs everywhere, which is really not a reasonable thing to ask of theme developers so it probably won't ever be supported.
>GTK has always had fallback stylesheets for this exact purpose
This is not about the fallback style sheet, this problem is specifically about the style sheet used by the app and how it can conflict with the theme. I'm not sure if you're familiar with CSS, but the way it works is that anything from the theme can override things from the fallback style sheet and that could mess things up if the app expects something different to be there.
>Flatpak has decided to circumvent them because of the Gnome foundation's wheel-spinning "don't theme our app" movement. There's quite literally nothing stopping the Flatpak devs from referring to your systems default stylesheet for all UI draws.
Have you read the "stop theming my app" page all the way to the bottom? Please re-read it if you can, it shows examples of how theming is unreliable and can break apps. That's what would be stopping them. Also this wouldn't really be up to "flatpak devs" to handle either, this would be up to the maintainers of the GNOME SDK and app developers.
>That's more work than I have to do on every other version of every package I use
How? It's a bug, it's not different from any other bug that you would report. Once it's fixed you don't have to worry about it.
>Wait, so now they have two packages to maintain? One being the true binary copy of their application, and the other being a sandboxed version that is apparently more likely to break?
No, I've noticed often the flatpak maintainer and your distro maintainer are different people. There isn't any "true binary copy", unless you consider the binaries that are provided by the developer, which you should check which ones those are. They could be flatpak or they could be something else. And actually the sandboxed version should be less likely to break since the dependencies are pinned and there are less moving parts there.
>it's really just "another competing standard" a-la XKCD
Yes, that's sort of true, you could also use Snaps or AppImage or a similar thing. However these are not the same as distro packages so in that regard they're not "another competing standard". This is a package that you can install on any distro and have a reasonable guarantee that you'll get the exact same version that runs in the exact same environment.
>Ah yes, the classic UNIX config directory '~/.var/app/', a directory that never existed until Flatpak came along and decided it was somehow the new standard. Great stuff!
I don't understand what you mean here. If you're being sarcastic, please don't do that, it doesn't add anything of value to the conversation. These apps are sandboxed, so you probably want them in a separate directory so they don't clobber your home directory. There is no UNIX config directory for sandboxed apps so they had to come up with something new. What exactly is the problem here?
It's really not for the developer convenience. It's actually harder to build for flatpak than not from the dev's point of view. The convenience of the unified distribution is for the consumers.
I wonder if the author realizes that the biggest threat to Linux on the desktop is the possibility that all of the mainstream browsers will drop support for it. By "mainstream" I mean that the browser can be used to interact with almost all the sites that Safari or Chrome can be used to interact with.
Even if the current crop of mainstream browsers on Linux (namely, Firefox, Chrome and Edge) do not actually announce an end of support of Linux, just neglecting it enough will be enough to get me to leave Linux, and I believe many others currently using Linux feel the same way. It's not like a person can do without daily access to a mainstream browser (and I am saying that as someone who does not even like the web).
I've been using Chrome directly under Wayland (i.e., starting it with the flags -enable-features=UseOzonePlatform -ozone-platform=wayland, because Xorg is definitely going away) and the rate of bugs is definitely higher than the Chrome team would tolerate on Windows or Mac. (I've used Chrome for a cumulative 300 hours or more over the last 2 years on Windows and Mac.)
So far I haven't seen any signs that security bugs in the Linux version get any less attention than the Windows or Mac versions get; that is a good sign.
If you use a browser with experimental flags don't you expect some bugs? Just the fact that "supporting linux" means dozens of distros, DEs, WMs and two display server protocols (three if you include android and four if you also include some older ubuntu variants) means that the number of bugs is probably expected to be higher.
In short: I expect browsers to be buggier on linux, and I do not think there is a large risk they will stop supporting linux.
So five if you use ChromeOS?
I don't really know how separated the concept of the "application" chrome and the "display server" chromeOS are.
I know chromeOS can run x11 apps, but is that within the chrome runtime or beside it?
EDIT: Seems I need to read up about Freon, which is what chromeOS uses (used?) instead of wayland/x11. So yeah, at least 5.
This seems unlikely since most Google employees use Linux workstations.
Do they mostly use Chrome (as opposed to something based on Chromium)?
> Xorg is definitely going away
Are you sure about that? I mean Xorg is going away, but XWayland is not. I've heard alsa is going away too for decades. Pipewire still implements support for it's API.
I don't think XWayland is going anywhere for the foreseeable future.
You're correct that XWayland is likely not going away any time soon but I would suggest avoiding it if you can, it's only for compatibility with legacy apps. It still has some of the same security issues as Xorg but they're confined only to other concurrently-run XWayland apps.
If (as I suspect) a person cannot do what I asked you how to do, i.e., a person cannot currently configure the set of software I described above to be normal sized on a hi-DPI display without blurriness and without "full Xorg" (i.e., not just XWayland, i.e., requiring parts of X11 that definitely aren't being maintained anymore), do you expect XWayland to be improved so that that becomes possible in the future?