Live data from Hacker News

Immutable Linux desktop with OpenSUSE and Snaps

ypsidanger.com

11–20 of 28 posts

Re: Immutable Linux desktop with OpenSUSE and Snaps

#11
Why was NixOS/GuixSD considered for this? It has immutable system and is fully declarative on top.

Snaps OTOH just seem like a way tk shoehorn proprietary packages onto open source ecosystem (not to mention snap store itself is proprietory, and cannot be swapped for some other snap store)

Re: Immutable Linux desktop with OpenSUSE and Snaps

#12

Why was NixOS/GuixSD considered for this? It has immutable system and is fully declarative on top. Snaps OTOH just seem like a way tk shoehorn proprietary packages onto open source ecosystem (not to mention snap store itself is proprietory, and cannot be swapped for some other snap store)

I've used NixOS before (I still have a server at home running it) but haven't tried GuixSD. Do you recommend it?

Re: Immutable Linux desktop with OpenSUSE and Snaps

#13

You had me at immutable but you lost me at snaps

Yeah, the funny thing is, that MicroOS is supposed to work with flatpak. It's installed out of the box and you just have to add the Flathub repo. (And on gnome you should remove libpackagekit-zypp to prevent gnome software to try to install updates via zypper)

With flatpak you also don't have to engage in this wierd /snap trickery.

Re: Immutable Linux desktop with OpenSUSE and Snaps

#14
> I can't believe this worked. Sure, you won't be deploying this in production, but we mostly survived this long with unconfined apps and having transactional updates is an improvement

The resulting system still seems very mutable to me, since it appears the system configuration management isn't tracked in a transactional manner. I would think for a "immutable Linux desktop", NixOS would be what the author was looking for, since the whole system is declaratively specified and can be rolled back to any previous generation. But some users go even further, performing a ZFS rollback on every NixOS boot[0] to ensure that mutable state doesn't accumulate (NixOS only needs /boot and /nix to boot, and creates /etc /var etc. if they don't exist already).

[0] https://grahamc.com/blog/erase-your-darlings

Re: Immutable Linux desktop with OpenSUSE and Snaps

#15

The /snap directory is such a ridiculous wart. I really like snaps but they should be unobtrusive, or at least configure-able.

As one of the folks that was present during the early decision-making around this, this was a wart that I wish the team had heeded me on fixing early on. Once they introduced "classically confined" snaps (that is, snaps that have no confinement and exposed the real filesystem hierarchy to them), there was no fixing this anymore. To be clear, the decision to stick to their guns on /snap predates the introduction of "c…

>Once they introduced "classically confined" snaps (that is, snaps that have no confinement and exposed the real filesystem hierarchy to them)

If there is no confinement, what advantages do "classically confined" snaps offer over AppImages?

Re: Immutable Linux desktop with OpenSUSE and Snaps

#16
post #12

Why was NixOS/GuixSD considered for this? It has immutable system and is fully declarative on top. Snaps OTOH just seem like a way tk shoehorn proprietary packages onto open source ecosystem (not to mention snap store itself is proprietory, and cannot be swapped for some other snap store)

I've used NixOS before (I still have a server at home running it) but haven't tried GuixSD. Do you recommend it?

I've used it before, and run a nixos server at the moment.

I think guix is a lot more ergonomic for package definitions and system configuration than nix, I also think the documentation is a lot easier to break into + it has a semi graphical installer.

the big downside being it doesnt come with proprietary drivers which is pretty annoying, but can be worked around with nonguix -- https://gitlab.com/nonguix/nonguix which also includes a few other proprietary programs, if thats something you need

Re: Immutable Linux desktop with OpenSUSE and Snaps

#17
post #15

Earlier quoted context omitted.

As one of the folks that was present during the early decision-making around this, this was a wart that I wish the team had heeded me on fixing early on. Once they introduced "classically confined" snaps (that is, snaps that have no confinement and exposed the real filesystem hierarchy to them), there was no fixing this anymore. To be clear, the decision to stick to their guns on /snap predates the introduction of "c…

>Once they introduced "classically confined" snaps (that is, snaps that have no confinement and exposed the real filesystem hierarchy to them) If there is no confinement, what advantages do "classically confined" snaps offer over AppImages?

Forced updates.

Re: Immutable Linux desktop with OpenSUSE and Snaps

#18
post #15

Earlier quoted context omitted.

As one of the folks that was present during the early decision-making around this, this was a wart that I wish the team had heeded me on fixing early on. Once they introduced "classically confined" snaps (that is, snaps that have no confinement and exposed the real filesystem hierarchy to them), there was no fixing this anymore. To be clear, the decision to stick to their guns on /snap predates the introduction of "c…

>Once they introduced "classically confined" snaps (that is, snaps that have no confinement and exposed the real filesystem hierarchy to them) If there is no confinement, what advantages do "classically confined" snaps offer over AppImages?

None, but that’s the point/ feature of classic confinement snaps : they have access to the entire filesystem at the expense of having access to the entire filesystem :)

By comparison, a strictly confined snap only has access to its own data directory and possibly to some configuration files or the users home directory, depending on which permissions it’s been granted.

A text editor which is most useful if it can edit arbitrary files in the filesystem could be classically confined.

A music player might be strictly confined with access only to external devices (and maybe users home directory).

A fishy untrustworthy crypto miner could be strictly confined with no additional permissions so it can only see/touch its own data.

Re: Immutable Linux desktop with OpenSUSE and Snaps

#19

Earlier quoted context omitted.

I saw someone on r/linux recently with a Fedora Silverblue install with all apps installed through Flatpak. We're getting there. Edit: CoreOS -> Silverblue. Thanks to LeoPanthera.

Have been using Silverblue for the past few years as my daily driver. Definitely a game changer, have all of my apps installed in a toolbox or via Flatpak. Can honestly say I have never had a system this stable before.

Which troubles that you had before did turn out fixed with Silverblue for you?

Re: Immutable Linux desktop with OpenSUSE and Snaps

#20
post #14

> I can't believe this worked. Sure, you won't be deploying this in production, but we mostly survived this long with unconfined apps and having transactional updates is an improvement The resulting system still seems very mutable to me, since it appears the system configuration management isn't tracked in a transactional manner. I would think for a "immutable Linux desktop", NixOS would be what the author was lookin…

Blog author here, indeed I like NixOS, but I don't have the time to generate an entire nix file for a working desktop. I have some friends that do it and that's great, but there's no "Get you 90% there" installation option afaict. I just don't have the time for that.

That being said I use nix on my systems, just as a package manager to some existing boxes.

Post reply on HN