that is one way to do it, and it’s a very common one - it’s robust and simple. So I can’t correct you, but thought I would add to it.
In NixOS, they’ve improved it by making sure all your apps are symlinked, and when updating, these symlinks are updated. That way you can start using your newly updated system straight away, without a reboot. When rebooting, you are prompted to which generation you want to boot into, (defaulting to “latest” after a few seconds of no input) making rollbacks a breeze.
I know its a meme but nixos is actually good for this. You can be on the unstable branch, not update for 5 years and still get everything working after updating(tho i dont recommend because of security). I think nixos has some fucking AMAZING features but the problem is its paired with features that make it extremely hard to use for a casual user.
So many Linux problems are solved by using NixOS, it’s amazing. Immutability? NixOS. Atomic upgrades? NixOS. Whole system rollbacks? NixOS. Versionned system settings? NixOS. Impermanence? NixOS. Multiple versions of the same program installed at once? NixOS. Containers? NixOS. Multiple hardware profiles on a single installation? NixOS.
At this point, I think the only thing remaining is a Flatpak-like sandbox.
Agreed! I think a part of the “problem” is that with Nix, there’s now at least 3 sides: application specific knowledge, system knowledge, and you have to use the nix language, architecture and tools to interface with it.
so for a seasoned linux user, there’s maybe just a new programming language, but if you’re new to Linux, it’s quickly gonna overwhelm you.
which in a way is a bit ironic because I’d argue that it’s easier to manage a NixOS system, and getting help is so much easier when your problems can be replicated by just aharing your config.
Id say its easy to share your problems with other people because its a few files unlike distros like arch where your packages can be fucked up and then you have to reinstall in most cases. But the support it self isnt too good. Arch has archwiki, ubuntu has a lot of channels of support while nixos has a badly written wiki.
If forgetting/not wanting to update puts you in this hole, like… ever, you should really give an atomic distro some serious consideration.
Say more please? What’s the advantage?
(correct me if I’m wrong, I’m also new at this)
There are two partitions. One with the current system, one with the previous system. Updates are applied in a whole batch at once, once in a while.
Current system is cloned into the old one and an update is applied to the clone.
Once the update is complete, system reboots in the clone, and what was the current system becomes the previous one.
If something goes bad, you can reboot into the previous system and fix the clone.
that is one way to do it, and it’s a very common one - it’s robust and simple. So I can’t correct you, but thought I would add to it. In NixOS, they’ve improved it by making sure all your apps are symlinked, and when updating, these symlinks are updated. That way you can start using your newly updated system straight away, without a reboot. When rebooting, you are prompted to which generation you want to boot into, (defaulting to “latest” after a few seconds of no input) making rollbacks a breeze.
That sounds kinda like what any OS should do in the history of OSs…
Should. But didn’t. Until fairly recently.
This is how the steam deck works. I think newer android phones do this too.
I believe this is how android has been for as long as i have used it. At least A6 or A7. Could be earlier but I haven’t used those enough
Yes, it uses an immutable atomic distro. I don’t know about Android phones, but I wouldn’t be surprised.
The atomic distro would do a backup and if update goes wrong, it automatically boots back into the previous one.
I know its a meme but nixos is actually good for this. You can be on the unstable branch, not update for 5 years and still get everything working after updating(tho i dont recommend because of security). I think nixos has some fucking AMAZING features but the problem is its paired with features that make it extremely hard to use for a casual user.
So many Linux problems are solved by using NixOS, it’s amazing. Immutability? NixOS. Atomic upgrades? NixOS. Whole system rollbacks? NixOS. Versionned system settings? NixOS. Impermanence? NixOS. Multiple versions of the same program installed at once? NixOS. Containers? NixOS. Multiple hardware profiles on a single installation? NixOS.
At this point, I think the only thing remaining is a Flatpak-like sandbox.
Agreed! I think a part of the “problem” is that with Nix, there’s now at least 3 sides: application specific knowledge, system knowledge, and you have to use the nix language, architecture and tools to interface with it. so for a seasoned linux user, there’s maybe just a new programming language, but if you’re new to Linux, it’s quickly gonna overwhelm you. which in a way is a bit ironic because I’d argue that it’s easier to manage a NixOS system, and getting help is so much easier when your problems can be replicated by just aharing your config.
Id say its easy to share your problems with other people because its a few files unlike distros like arch where your packages can be fucked up and then you have to reinstall in most cases. But the support it self isnt too good. Arch has archwiki, ubuntu has a lot of channels of support while nixos has a badly written wiki.