Why use immutable Linux ? And which one ? - eviltoast

What are the pros and cons for desktops ? EDIT : Thanks all. I’ll try Silverblue, bazzite and more.

  • epyon22@programming.dev
    link
    fedilink
    arrow-up
    31
    ·
    9 months ago

    Been using nixos for a couple months now. It’s nice and I really enjoy having all my configuration in one place and able to be version controlled. The down side being installing and configuring things take a bit more time to read how nix does it. I have it on a laptop that I’ve been playing with and removed it and put rocky for something else but I am 100% confident I can go right back to the way i had it.

    So far the cons I’m seeing is installing vscode plugins are a little annoying and setting up to do python development on existing projects not very easy.

    • unlawfulbooger@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      Python development shouldn’t be that hard I think. You can just drop a shell.nix that imports your pyproject.toml and then you can run nix develop and have all your dependencies installed seamlessly with poetry2nix.

      I’m using neovim so I can’t really help you with vscode, sorry.

      Have you tried Erasing your darlings with NixOS?

  • SethranKada@lemmy.ca
    link
    fedilink
    English
    arrow-up
    24
    ·
    edit-2
    9 months ago

    I’m using Bluefin right now, but I was using bazzite before that. I’d say the biggest benefit is that it’s hard to break permanently. Sure, you can still mess up your home directory pretty bad, but system level stuff is nice and stable. The biggest problem is compatability and software instalation. Flatpak and toolbox/distrobox are nowhere near as good as the documentation makes them out to be. I’d suggest making sure you select a distribution with Nix pre-installed so it’s still possible to install stuff.

    (Edit: There is apparently a workaround for the following issue, though I have not tried if yet.) Just be aware that some things are just plain impossible with atomic distos, and you can’t change it. Like the login screen. You can’t change that at all, whether it’s the background or the default zoom level. It’s part of the system packages and can’t be fixed.

    • e8d79@feddit.de
      link
      fedilink
      arrow-up
      9
      ·
      9 months ago

      The part about changing the login screen seems to be not entirely true. There is also this tool that claims to be able to generate rpm from sddm themes that you then can layer onto your system image. Take this with a grain of salt though, as I haven’t tried either method because I honestly don’t care how my login screen looks.

    • MalReynolds@slrpnk.net
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      9 months ago

      Like the login screen. You can’t change that at all, whether it’s the background or the default zoom level, it’s part of the system packages and can’t be fixed.

      in /etc/fstab (ublue-kinoite, ymmv):

      # enable sddm write accesss and therefore good themes
      /var/sddm /usr/share/sddm none rbind 0 0
      
      
    • fenndev@leminal.space
      link
      fedilink
      English
      arrow-up
      2
      ·
      9 months ago

      I’ve been trying Bazzite out for a few days, and it’s really neat. Coming from a standard distro, I like the idea that I can install pretty much anything with the combo of Flatpak, AppImages, and Distrobox. I was unable to install DaVinci Resolve on the Fedora Distrobox however, and the lack of Snaps - although I much prefer Flatpaks or AppImages - kinda sucks because it would be nice to have the Snap for Flutter…

  • TheMonkeyLord@sopuli.xyz
    link
    fedilink
    arrow-up
    23
    ·
    9 months ago

    I have been trying to understand this for a minute and I can’t seem to understand why you would use it on a personal workstation.

    Like it makes sense for servers, and for deploying accross multiple systems in a corporate or public setting, but beyond that it seems like it is just adding unnecessary steps if you try to use it on your personal rig.

    Maybe I’ll need to just give in and try it for a week to a month to see the appeal

    • sibloure@beehaw.org
      link
      fedilink
      arrow-up
      23
      arrow-down
      1
      ·
      edit-2
      9 months ago

      It’s much harder to break if you’re prone to tinker. And there’s no configuration drift that naturally accumulates over time as you tweak a system, so it always runs like a fresh new installation.

      I have learned much more on immutable OS because I’m no longer afraid to tinker around and try new things. I play in distrobox and can completely nuke the container without affecting my whole system.

    • waitmarks@lemmy.world
      link
      fedilink
      arrow-up
      10
      arrow-down
      2
      ·
      9 months ago

      honestly i feel exactly the opposite, I don’t think it’s really necessary for servers as tools like ansible are already well established in that space. Plus most servers are VMs these days which can be snapshotted easily. Also, lot of these “immutable distros” require a reboot to apply changes which is non ideal in a server, but a non issue for desktop as you can shut it down when you go to sleep.

      I run fedora atomic on my desktop and laptop because i never have to worry about my system getting into a broken state, I can always roll back or even spot the problem and fix it before i reboot to apply the change. I know a lot of people say you can accomplish the same thing with btrfs snapshots, but that requires extra thought and effort on my part, where fedora atomic it happens automatically with every update.

      • TheMonkeyLord@sopuli.xyz
        link
        fedilink
        arrow-up
        3
        ·
        9 months ago

        Fascinating,

        Again I haven’t actually tried it. I went to install fedora kinoite(?) On an extra laptop I have to try it out but apparently the memory isn’t seated correctly, so I will have to fix that real quick.

        I also watched The Linux Experiment’s video on it and cleared up some confusion

    • ___@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      9 months ago

      With immutable distros you can try a silverblue and switch to kinoite with a reboot on an already running system and it will just work and run your flatpaks. The base image it runs does not get corrupted. You cannot make changes (easily) to the base to corrupt it. Your apps and files are just an overlay or mounts on top of the system. Your machine lights on fire, if you have a network backup, it will fire up on any hardware and be the same. It’s much cleaner and allows for easy os switching.

      You could theoretically make windows work and be switchable.

    • Chakravanti@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      3
      ·
      edit-2
      9 months ago

      Help me understand what I don’t then. Why would anyone wise ever trust someone they don’t know running closed source software of any kind on “their” computer?

      I don’t trust that asshole. I know him enough to not trust him let alone make my computer follow his directions. Why use anything but FOSS?

      All down votes but no answer. Suckers.

  • theonlyk@linux.community
    link
    fedilink
    English
    arrow-up
    21
    arrow-down
    1
    ·
    9 months ago

    I’m pretty much immutable across the board on all of my servers and workstations (laptop included). Most my servers are openSUSE Leap Micro and MicroOS. Run MicroOS on the desktop side as well.

    Honestly …haven’t had any issues and the maintenance of it is fairly hands off. Few of mine are k8s nodes so that combined with the reboot mgr + transactional-update has been awesome. I spend less time maintaining my homelabs / desktops and eases my focus in just getting work done.

    I’ve only had to roll back a couple of times (mainly self-inflicted), so it’s nice having that capability. A lot of this though can be accomplished in a non-immutable world as well.

    • sprkplug@sh.itjust.works
      link
      fedilink
      arrow-up
      8
      arrow-down
      2
      ·
      9 months ago

      A note on “MicroOS on the desktop”: The Gnome variant is called OpenSUSE Aeon and the KDE variant OpenSUSE Kalpa. MicroOS branding is used only for server use due the confusing names. Quoting from https://news.opensuse.org/2023/05/31/microos-desktop-has-new-name/

      Simply put? The microOS product namespace is getting crowded. And this is leading to a certain amount of confusion, and causing some support issues. At present, amongst the microOS “family” offered are: Server Products openSUSE MicroOS openSUSE Leap Micro SUSE Linux Enterprise Micro Desktop Products openSUSE MicroOS Desktop GNOME openSUSE MicroOS Desktop Plasma And I think we can all agree, when somebody joins a support forum of some sort, be it Matrix/Telegram/forums/IRC/etc, and says “I’m running microOS and I have a problem” then the inevitable question of “Which MicroOS?” has to be asked. And by their very nature, the Desktop offerings are quite different beasts, than the server offerings, and have quite different support needs. And typing out “openSUSE MicroOS Desktop GNOME” is just too darn long, every time you want to tell somebody what’s running on your machine.

  • Thrickles@lemm.ee
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    1
    ·
    9 months ago

    Bazzite right now. I only use my PC for gaming and get limited play time, so I usually wake it up and straight into a game. Bazzite has worked extremely well for me to achieve that with virtually no maintenance so far (updates are automated).

  • MrSpandex@lemm.ee
    link
    fedilink
    arrow-up
    12
    ·
    9 months ago

    I use Fedora Silverblue and I love that my system is exactly the default out of the box distro, with just a couple diffs that are tracked in rom-ostree.

    I’ve had frustrations in the past where I install packages to try something, then remove them and forever have something hanging around. Eventually one of those things inevitably breaks an upgrade or dependency resolve.

    Installing apps as flatpacks is fine. I don’t love the duplication of system files, but do love that the apps aren’t tied to my distro version.

    I also like that all updates happen silently in the background and I just reboot once a week or so. Never think about it.

    I feel like the Fedora Atomic distros are great for people who mostly just want a working system and not to tinker endlessly. You can tinker, but it isn’t the default and it’s basically impossible to get into a bad state permanently.

    • joel_feila@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      How is gaming on it,? I recently haf an issue with steam flatpak and needed to switch it for deb verion.

  • AlexanderKing@lemmy.world
    link
    fedilink
    arrow-up
    11
    arrow-down
    1
    ·
    9 months ago

    Better resources usage when running all the apps as Flatpaks. Once you hit the close button, the zygote is killed, and you’re sure that web browser doesn’t run anything stupid in the background anymore.

      • navordar@lemmy.ml
        link
        fedilink
        arrow-up
        16
        ·
        9 months ago

        No, I think they meant that you get better resource usage when you install an app as a Flatpak instead of a system package. You get the same benefit in a traditional distro too, if you use Flatpaks, it’s just that immutable distros kind of force you to use them.

  • GravitySpoiled@lemmy.ml
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    2
    ·
    edit-2
    9 months ago

    If you want to tinker with the system, if you want to install multiple DEs, if you want to test and change things on your own, you may not like the rigidity of atomic systems.

    If you don’t want to tinker with your system and you always want to have a working system, go for it.

    In the future it will become easier to tinker with the system (I hope that it doesn’t take the path of android). I hope that more happens within containers and that it mature even more. Maybe the de within a distrobox? That would be awesome but I don’t no the downside of it.

    Right now you are still an early adopter. It sounds like the future and for many it will be, but who know what’s next. Especially companies have an interest in fedora’s atomic distros with ostree.

        • Virulent@reddthat.com
          link
          fedilink
          arrow-up
          5
          arrow-down
          2
          ·
          9 months ago

          Because all changes are transactional so you can easily revert to a previous system state if you break anything

        • waitmarks@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          9 months ago

          With fedora atomic, lets say i wanted to try out kde desktop for a while. i would first pin my current build so i can roll back to it if i dont end liking kde with

          $ sudo ostree admin pin 0

          Then i would rebase to the kde branch with

          $ rpm-ostree rebase fedora:fedora/39/x86_64/kinoite

          Then just reboot. That’s literally it and i would have a kde system with all my layered packages and i could roll back to my old system at anytime.

    • MajinBlayze [any, he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      I’ve been using microos exactly because I like to tinker. Just the other day I installed plasma 6 to play around with the HDR implementation, then decided that it wasn’t worth it and rolled everything back. Worse case scenario I might have needed to reset kde configs in my home directory, but even that want necessary.

  • Communist@lemmy.ml
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    9 months ago

    If you’re using gnome/kde, I see no reason not to run immutable, the advantages of not being immutable are that you can piece together your system, if you’re running i3/sway/whatever, being able to choose your panel, your launcher, etc actually has value.

    The advantages of immutable are that you’ll never end up with a broken system, you can easily roll back to a not broken one if something does break, and the system is separate from your apps.

    • PotatoesFall@discuss.tchncs.de
      link
      fedilink
      arrow-up
      10
      arrow-down
      1
      ·
      edit-2
      9 months ago

      I was able to break fedora silverblue by messing file permissions in the home directory. Toolbx then stopped working, without which the distro is unusable.

      You can also make chaneges in /etc and similarly ruin your system.

      Just saying they aren’t quite as “unbreakable” as advertised.

      • waitmarks@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        9 months ago

        all changes in etc are snapshotted with each update so you could just roll back to your previous version and it would fix it.

        I assume you meant you messed up permissions in your home directory, and yes that is pretty much the only place you can permanently mess something up with silverblue.

  • UNY0N@lemmy.world
    link
    fedilink
    arrow-up
    8
    arrow-down
    2
    ·
    9 months ago

    I’d just like to add that after using ubuntu (as a newbie), then arch for several years I recently switched to bazzite (atomic fedora with steam/gaming focus) on my daily driver.

    It is SO NICE to have everything just work. And steam games that I never got working on other distros just run out of the box. Everything just works, and it doesn’t feel bloated at all like ubuntu.

  • e8d79@feddit.de
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    9 months ago

    I am using Fedora Kinoite and it has been incredibly stable. I like that I can always rollback to a previous state if an update breaks something. This was a huge issue for me a couple of years ago and I stopped using Linux for quite some time because of that. I haven’t had to roll back anything yet but without that feature I wouldn’t even consider making a Linux distro my daily driver. Installing software is for the most part pretty easy if you are happy using flatpak applications and toolbox. I like that all the packages that I need for my work or for messing around stay in the toolbox container and won’t affect the stability of my system. The only thing I find a bit annoying is that you have to reboot to apply updates. For me, going back to a ‘mutable’ distro is out of the question.

  • Pantherina@feddit.de
    link
    fedilink
    arrow-up
    5
    ·
    9 months ago

    Fedoras version uses rpm-ostree which is actually controlled and all that git stuff.

    rpm-ostree has a lot more potential that is unused though.