36
submitted 7 months ago* (last edited 7 months ago) by wwwgem@lemmy.ml to c/linux@lemmy.ml

I've been curious about NixOS for quite some time. Reading about it I couldn't see how the config sharing capabilities, setup, or rollabck would be better than Arch and sharing the list of installed packages, using downgrade or chroot.

So I decided to run NixOS in a VM and I'm still confused. An advantage I can see for NixOS is its better use of cores and parallel processing for packages install.

It's clear that I'm missing something so please help me understand what it is.

Edit: Thank you to everyone in this great community! It's always so nice to have a constructive and sane discussion.
After reading so many comments, they all confirm what I've read before and I may realize that my real problem is already having a stable system and no need for the great NixOS options that are very neat but would not benefit my specific and simplistic needs. That being said I can't refrain myself from being curious and will continue testing NixOS.

The need for only 2 config files is the top of the iceberg but hiding more complex configuration to rely on. Not that I really have too much spare time but I do enjoy learning and tweaking NixOS. With its current development state, things are changing a lot so it can keep me busy for months. That's probably what I was mostly looking for: another toy to play with.

Along my journey I will learn a lot about NixOS and may find a feature that will motivate my switch to it. Thanks again for all your precious feedback!

I'll also take this opportunity to share the best help I've found so far to start with NixOS: https://github.com/MatthiasBenaets/nixos-config And his 3 hours (!) video: https://m.youtube.com/watch?v=AGVXJ-TIv3Y

top 50 comments
sorted by: hot top controversial new old
[-] dinckelman@lemmy.world 26 points 7 months ago

The appeal of it, to me, is the same as why Docker containers are really good. You write your definition, save it to git, for example, and if you ever need to setup your computer from scratch, if you restore that config, it'll setup your computer exactly like it was before. But even besides that, being able to roll back if something goes wrong, is a big plus

[-] wwwgem@lemmy.ml 9 points 7 months ago

That's what I keep reading and why I would like to give it a try. For now I'm still confused how this is easier/more efficient than sharing your list of packages, restoring a backup, or using downgrade in Arch. I'm really interested because I like to try new stuff, especially if they bring something of interest.

I really have hard time to see the difference for now after my first setup in a VM but also because imaging my full Arch system on a new machine 2 years ago only took me an hour and less than 10 command lines.

Again, I'm genuinely trying to understand what I'm missing. From my reading NixOS seems to be the only distro I could switch to.

[-] sashanoraa@lemmy.blahaj.zone 12 points 7 months ago

Because your Nix config also configures your software, not just installs it. Admittedly, with base NixOS that's more true with server software than desktop. But with the addition of home manager you can also configure many desktop apps in your Nix config.

[-] wwwgem@lemmy.ml 5 points 7 months ago

Thank you for this addition. I very much appreciate the fediverse community who is helping people to understand things, share their knowledge, and acting nicely (if we exclude some rare people who are clearly not used to live within a sane community). I've seen home manager but this raised one more question to me: what's the added value compared to stow for example? Thanks again for sharing your thoughts.

[-] sashanoraa@lemmy.blahaj.zone 1 points 7 months ago

I've never used stow so I can't speak to it specifically. Home manager is nice for two reasons. If you're already using NixOS you can have one unified config for your whole system. And because Nix is a programming language generation these configs, you may be able to do thing you wouldn't otherwise. It also has some nice defaults that you may not get without.

[-] wwwgem@lemmy.ml 1 points 7 months ago

Due to the still early development of NixOS, Home manager is in some ways very similar to nix-env and flakes is still highly experimental. Also, the configuration parameters are changing quite significantly with the distro development. I'm sure this will all settle down when the distro will become more mature but to be honest that's also what attracts me. I like chaos ^^ Seriously, this shows me some potential for great achievements. I will continue testing NixOS but for now I didn't find THE reason to leave Arch yet. If I would have to deploy my config on several machines or create dedicated config using a common base then I would have been convinced. Will see where my journey leads me.

[-] Auli@lemmy.ca 3 points 7 months ago

Sure but not everything can be defined in the Nix config. Firewalls have an issue, some options for packages are not implemented yet. For example systemd networkd doesn't have all the features implemented.

[-] sashanoraa@lemmy.blahaj.zone 3 points 7 months ago

NixOS in it's current form does have it's limitations but it's ever improving. I personally have never had issues doing what I needed to firewall wise, but I've not done much of anything complex. Mostly just opening ports and a little port redirecting.

[-] BCsven@lemmy.ca 3 points 7 months ago

my thoughts which may have inaccuracies: in NiXOS The package declares the exact version of dependencies needed. when you update nixos it takes up quite a bit of space because you may have some links to one library but another app uses something else and both are stored on drive, and your old install is still there to roll back to. On other distros a package lists dependencies, but during updates a single dependency may have a bug fix point release, and upRev. so the behaviour of that app you added may change depending on all it subparts changing. So when you install non nix today or 6 months that package also determines how it may function. if Dependencies updated in the meantime your install may act different. NiX prevents this since you have a repeatable install.

[-] wwwgem@lemmy.ml 2 points 7 months ago

Thanks for taking time to share this detailed thought. That's an interesting point I forgot because I didn't experience any related issues over 15 years with Arch but that's still a nice approach. I can certainly see why this is a big plus for NixOS.

[-] BCsven@lemmy.ca 1 points 7 months ago

I haven't had issues with my OpenSUSE Leap install in 7 years either, there is careful curating, and automated QA testing, and roll back snapshotting if you break something while messing about. But I have a NixOS machine also. It provides a nice way of configuring a repeatble system, which is probably a huge bebefit for folks making / deploying linux devices that are 100% repeatable.

[-] wwwgem@lemmy.ml 1 points 7 months ago* (last edited 7 months ago)

Right, I totally agree. If I would have to deploy my config on several machines or create dedicated config using a common base then I would have been convinced. I'm still not convinced from a dummy single user point of view but I still believe in this distro and like its approach so I'll continue experimenting with it and we'll see where my journey leads me.

At least for now I'm glad to have a new toy I can mess up with. With my Arch system I was getting this weird feeling where I was happy to have an efficient and stable machine while at the same time being bored to have nothing to test/tweak/destroy and rebuild. I mean I love to learn and discover new things so I experiment a bunch of applications and parameters I will never need anyway but it becomes harder and harder to find something that keeps me entertained for more than a day.

[-] BCsven@lemmy.ca 2 points 7 months ago

I hear you. My openSUSE Leap has been so stable that I got bored with nothing to tweak. Their MicroOS has an immutable system with config file setup capability, and sombody built this for it to make config file creation simple https://opensuse.github.io/fuel-ignition/edit so that was fun for a while. But NixOS was a nice distraction also

[-] kionite231@lemmy.ca 15 points 7 months ago

for me personally I like to be able to install software temporarily using nix-shell command it's awesome. the installed program will be gone once you leave the nix-shell. It's just awesome for me.

[-] neosheo@discuss.tchncs.de 3 points 7 months ago

Don't forget to run nix-collect-garbage tho. The program is actually still installed, the symlimk to $PATH is just deleted after exiting the nix-shell

I agree, but you don't need nixos if that's all you want since you can get nix-shell on most linux distros

[-] wwwgem@lemmy.ml 2 points 7 months ago

That's indeed pretty neat.

[-] onlinepersona@programming.dev 14 points 7 months ago

Better in some ways, but it has the worst documentation of any distro I've seen so far. https://nixlang.wiki is trying to improve that

CC BY-NC-SA 4.0

[-] Laser@feddit.de 12 points 7 months ago

How to read NixOS documentation:

  1. Go to wiki, see if topic exists
  2. If it does, notice how it doesn't cover your case
  3. Use the hints from the wiki to get your search engine redirect you to https://ryantm.github.io/nixpkgs/
  4. Notice it still doesn't cover your use case
  5. Use search engine again, this time with the hints from aforementioned page, to arrive in the proper code in the nixpkgs repository
  6. Read annotated source code to see what actually happens

Yeah, this is how I found https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/make-wrapper.sh yesterday because I wanted to install some shell scripts that needed to be adapted.

Don't get me wrong, maintaining a distribution the way NixOS is a huge effort and I can't praise the maintainers and developers enough. The ecosystem they've built is unlike I've seen anywhere, and the technical foundation is sound – in fact I'd wager more sound than what commercial distributions offer. The latter just have more grease. But I do understand the criticism about lacking documentation. But human labor is scarce, and I mean look at me posting this here instead of improving it.

There's also no good guidance or best practices for packages in nixpkgs and stuff is permanently changing (which in my opinion is good). E.g. did you know that new derivations should be sorted by letters, not categories, and not go into all-packages.nix? At least if your derivation doesn't require fancy attributes (pardon me if that is not the correct term). Or that stdenv.mkDerivation rec {…} is not best practice, but rather stdenv.mkDerivation (finalAttrs: {…})? And why the latter even works?

Writing good documentation for a system, especially one that's permanently evolving, is not easy, and I prefer all efforts going to actually maintaining and evolving the system itself than trying to get the perfect documentation that's outdated in a matter of time. And without trying to gatekeep it, NixOS is a distribution for advanced users. I recommend it to everyone who has a solid understanding of how a Linux system is composed because I think it's important what NixOS abstracts away from you. And as an advanced user, reading commented code once in a while is fine in my opinion.

[-] onlinepersona@programming.dev 5 points 7 months ago

The problems with nix/nixos documentation are:

  • documentation isn't sexy so not many want to do it
  • documentation is difficult to be written by beginners because... they're beginners
  • nix/nixos maintainers undervalue documentation efforts - I've tried to get in pull requests, but they just stall (not reviewed, nitpicked to death, simply not merged, etc.)
  • it isn't generated from source code

Also, the very top heavy decision making process harms the community. Some person with hundreds of commits can push through nearly any change (good or bad) relatively quickly, unless other frequent contributors are really really against it. However, fresher contributor with a great change is forced to go through a never-ending process and few stay to actually finalize it.
Pushing to master was not seldom for a long time and IINM it isn't possible anymore. But maintainers can simply (and do) create a PR, make a change and merge it.

These difficulties just make me want to fork nixos. For documentation, at least there's https://nixlang.wiki

CC BY-NC-SA 4.0

[-] Laser@feddit.de 4 points 7 months ago

Good points. If you go through the open pull requests on nixpkgs, there's a lot of stuff that never got through and it's not obvious as to why. I was happy to see a lot of stuff merged less than a week ago. But at this point, there's a huge backlog.

As to forking NixOS, which in my opinion means forking Nixpkgs, Guix system seems like a good start. I decided for NixOS because of proprietary packages as I use Steam, and support for secure boot which while still young and only through lanzaboote works very well for what I use it.

[-] onlinepersona@programming.dev 3 points 7 months ago

Guix system seems like a good start

I'm glad they exist. It shows that the concepts can be successful using another language. To me, the major downside is exactly what you said: no proprietary stuff. Additionally, it's LISP.
In a fork, I'd try to change the way decisions are made, which software is used, add linting and autoformatting to repositories, move away from github (maybe by the time I find the time to we'll have federated sourceforges) and github actions, maybe use nickel or haskell instead of nix, generate documentation from sourcecode, try and use a distributed cache (tahoelafs, ipfs, storj or some other distributed/decentralised file storage), etc. Getting any of that done in the current repos seems like an uphill battle.

CC BY-NC-SA 4.0

[-] Laser@feddit.de 3 points 7 months ago

Let us know when you do! It's a huge undertaking and NixOS has a pretty big network effect. Doesn't mean no one should tackle creating an alternative. I fully believe declarative distros are the future for any production environment and that the space is far from taken by current distributions.

[-] Atemu@lemmy.ml 1 points 7 months ago

documentation isn’t sexy so not many want to do it

Don't think that's the primary issue. Most of us can appreciate good documentation.

It's more of a resource problem. We could either be writing docs or working on literally everything else. Docs are important but so are updates, fixes and new packages/modules/etc. Most of us contribute in our free time and would rather spend that little time on ensuring that the distribution works.

nix/nixos maintainers undervalue documentation efforts - I’ve tried to get in pull requests, but they just stall (not reviewed, nitpicked to death, simply not merged, etc.)

Not at all. It's, again, a resource distribution problem. That happens to many, many PRs, regardless of what they actually do. We have a rather severe shortage of reviewer time.

Nitpicks can be annoying but the people do it because they actually do care; quite a lot.

it isn’t generated from source code

It... is?

https://nixos.org/manual/nixos/stable/options (warning: humongous page, may crash your browser)

very top heavy decision making process harms the community.

What kind of decisions are we talking about? The RFC process is the exact opposite of "top heavy".

Some person with hundreds of commits can push through nearly any change (good or bad) relatively quickly, unless other frequent contributors are really really against it.

No. Someone recently got their commit access revoked for self-merging something that was really not good. We care about quality.

However, fresher contributor with a great change is forced to go through a never-ending process and few stay to actually finalize it.

Yup, that happens. We don't have enough time to give newcomers a really good experience.

Though if I'm honest, a fresh contributor should rather get more of a feel for the processes and conventions for a bit before trying to implement a "great change" (as in: size and complexity) anyways. That massively reduces the need to go back and forth over obvious mistakes a more experienced contributor would simply not have made.

maintainers can simply (and do) create a PR, make a change and merge it.

And it's frowned upon. Especially if that touches something someone else maintains and no reasonable response time was given.

Again, someone recently had their commit access removed for doing exactly that. We don't like this either and this issue is slowly but surely getting better now.

These difficulties just make me want to fork nixos.

That won't help anyone.

load more comments (3 replies)
[-] Ramin_HAL9001@lemmy.ml 12 points 7 months ago* (last edited 7 months ago)

What is good about NixOS (and GuixOS) is that they apply to package management the same principles that Git applies to managing source code. The Nix store is basically an append-only database (you might even call it a "blockchain") of inter-dependent packages.

So from an individual computer user's point of view, it is much safer to install and roll-back software with Nix than with an ordinary package manager that might allow you to accidentally delete package dependencies and break your system. With Nix, you can install packages that actually do break your system, but because of the append-only nature, you can actually roll-back the install automatically right from the Grub boot menu, no need to re-install anything.

Another advantage of NixOS, though this is more from a system operator's point of view, is that you can guarantee reproducible builds. If the package you have installed has the same hash on all of your computers, that is a simple, human-verifiable proof that all of those systems are running the exact same build of the software. You can probably see that this is very useful for people running servers, like compute clusters, or doing things like A-B testing.

[-] nomen_dubium@feddit.de 7 points 7 months ago

(don't know if arch supports this natively now but) declarative package managment is why j started using it... having ansible/terraform basically be a part of the os is great for me because a reinstall of the current running system just means i copy my configuration.nix and i'm back to where i was but fresh...

another thing is build isolation (you can have clashing dependencies without issues because each package specifically links to the dependencies it needs)... it does kind of bloat the disk a bit, but it also shares dependencies of the same version across packages so it's not like flatpack (if i understand that correctly)

[-] java@beehaw.org 9 points 7 months ago

I think if you have no answer, it could be that NixOS doesn't solve any problem for you. In effect, it's not better. Don't buy into social media hype. It's just a tool like any other.

[-] wwwgem@lemmy.ml 2 points 7 months ago

You're spot on and that's what this discussion helped me figure out: I have no problem. I knew that but I also thought that NixOS would bring something new to improve my Linux usage. So far I still see such improvements for servers or deployment on several machines but not for a single user with standard needs (and this statement may be wrong and due to my limited experience with NixOS).

But NixOS approach is quite different from others and I feel like I may discover something of interest to me once I learn more about it. Also, just for the sake of learning and discovering, I will continue experimenting with it for a while.

[-] chayleaf@lemmy.ml 4 points 7 months ago

In short, Nix reduces the setup time, both for your system and for your projects. If you find yourself spending a while setting stuff up (for example, after a reinstall; or maybe you want to run your project on another PC and need to install the right dependencies), Nix will help. Otherwise, if your desktop is vanilla Fedora or whatever and you don't do much programming (or you don't have any dependency management problems), Nix probably isn't for you.

[-] flashgnash@lemm.ee 8 points 7 months ago

For me it's the fact that I have one source of truth for my whole system config that I can stick in git

If I want to clean up software I don't need anymore I just remove them from the package list and they're gone next rebuild

Also means when I reinstall or setup a new system I just run the installer, do a git pull, rebuild and I've instantly got all my tools, configured just how I like them

Also, if I want to make a big change I can build my system in a VM first to make sure it works first (not that I do that because it also lets me revert to an earlier build from grub if I need to)

I've also got both my laptop and my PC on basically identical configurations from the same git repo with each of them having a smaller config file for hardware specific stuff

[-] savvywolf@pawb.social 4 points 7 months ago

I'm currently working on rebuilding a Debian web server that's been around for 10 years and accrued configuration over that time in NixOS. It's nice to have one single easy to understand file that fully defines the server and can be used to rebuild it if needed.

[-] wwwgem@lemmy.ml 3 points 7 months ago

I can see that from a server maintenance point of view. After having read so many great things about NixOS, I may have exaggerated my expectation and I may be the problem for being a user with too limited needs to get the full benefits of NixOS.

For me this single config file doesn't save that much additional files and most of them would be files you configure only once during installation. Nonetheless I can see how "easier" it would be to save one file instead of 3 to reproduce your system and I can only imagine how much better it is from a server point of view.

[-] cybersandwich@lemmy.world 4 points 7 months ago

You might be selling it a bit short. I am not a Nix user, but like you I've played around in a vm. The value proposition I see for "normal" users is when you end up tuning and configuring your system just the way you want it (everyone knows what I'm talking about--it happens over months or even years). In nix, you have to do those changes in the config so you can literally take that one file, plop it somewhere else and it's your computer.

Likewise, I've been on this install of Pop for years and for several upgrade cycles. The amount of cruft; things I've installed and don't use, config changes I made while following a tutorial then forgot about, manual tweaks for things that have been officially patched, etc. it would all be in a nix config for me to just... remove.

So I see that as the benefits of it.

That said, it definitely gives me vim vibes. Where the learning curve is pretty steep but once you master it, it's close to tech Nirvana. Again, since I don't use it I can't say that for sure. Maybe one day I'll have enough time to devote to it to really dive in. Right now, it's frustrating to use because everything is harder and there aren't many guides on how to do basic things like get dash-to-dock plugin working on popshell. Or even install and configure neovim. Ain't nobody got time for that right now.

[-] wwwgem@lemmy.ml 2 points 7 months ago* (last edited 7 months ago)

Great feedback, thanks! I've appreciated being able to replicate my system in NixOS within only few hours. I found NixOS actually pretty easy to take a grasp on, though I still didn't look at flakes in detail. You spot on the reason why I'm using Arch and a bunch of applications you can tweak to perfectly meet your own specific needs (neovim, neomutt, bspwm, rofi...).

I love spending time to config them and to learn new things. This is basically why I'm interested in NixOS as well. Being entirely satisfied with Arch and not being a distro hopper, the fact that I installed NixOS means a lot to me but now I need tangible reasons to fully move to it. Maybe time will help me in my decision.

All the great feedback in response to this post so far confirm how great NixOS is and I had no doubt about that. I may realize what it can bring me after some weeks of serious use. Thanks again for the time spent to write your feedback, very much appreciated

[-] driveway@lemmy.zip 3 points 7 months ago

If I didn't already have my relevant configurations tracked in git and my (quite simple) post-install script to copy the configs to relevant dirs, I guess I'd use Nix. I don't see the appeal when I have the same functionality on a distro I am familiar with.

[-] onlinepersona@programming.dev 1 points 7 months ago

Which distro are you using and how are you tracking your configs in git? A bare git repo with a worktree set?

CC BY-NC-SA 4.0

[-] driveway@lemmy.zip 1 points 7 months ago

Arch. My home directory is a git directory that ignores all by default then I enable what I want to keep.

[-] onlinepersona@programming.dev 1 points 7 months ago* (last edited 7 months ago)

Are system services configured in the home directory in arch? 😮

CC BY-NC-SA 4.0

[-] taanegl@beehaw.org 3 points 7 months ago* (last edited 7 months ago)

So, it's like this. Your operating system is an environment. It has it's paths, it's got it's file system. In many ways said system can have plenty of conflicts and issues regarding dependencies, runtime and permissions, even cruft that it will accrue over the years even.

This is where nix comes in. Nix creates sterile, reproducible environments. With flakes, the reproducibility is 1:1. It can also manage several environments, all isolated from each other.

Not only that, but technically speaking, nix can build anything, as it's a build system of build systems. You don't have to rely on nixpkgs or NixOS. You still get the environmental magic, along with whatever nix evaluations you put into it, so you could make your own nixpkgs (or recipes, really).

Personaly I want to go deeper, so I was thinking of how I could beat make my own package set by getting all the SRPM's of say RockyLinux to create rockypkgs, which is just the Rocky Linux selection of packages and patches built into nix environments.

Maybe you could then also have ubupkgs, fedpkgs, rhelpkgs... mix and match packages lol Yeah, it really is that insane.

Imho Nix has not reached it's potential yet because of some stuff that needs to be fixed, but restructuring and refactoring is underway. Nix as a command will become more streamlined and central for ease of use, and nixpkgs needs a bit of recajiggering to get the package layering just right - or so I've heard (find us, in the Matrix chats).

LETS GO, RFC136!!!

[-] hallettj@beehaw.org 1 points 7 months ago* (last edited 7 months ago)

NixOS puts your full system configuration in a portable set of files. You can easily reproduce the same configuration on another machine. I also like that instead of accumulating a growing list of packages that I don't remember why I installed I have package lists specified in files with comments, and split into modules that I can enable or disable.

IMO NixOS works best when you also use Home Manager to apply the same benefits to your user app configurations and such. (OTOH you can use Home Manager to get those benefits without NixOS. But I like that I get consistency between the OS-level and user-level configurations, and that both use the same set of packages.) I use Home Manager to manage my list of installed packages, my dot files, Gnome settings, Firefox about:config settings, and so on.

You might be installing packages imperatively with nix profile install or with nix env -i. If that's the case you're not going to see the full benefits of a declarative system in my opinion. I prefer to install packages by editing my Home Manager configuration and running home-manager switch.

I like that NixOS + Home Manager automates stuff that I used to do by hand. A couple of the things that I do or have done are to,

  • test an experimental window manager, Niri
  • use Neovide (a GUI frontend for Neovim) with a custom patch to tweak font rendering

Now I have that kind of stuff automated:

  • Since there was no packaging for Niri when I started trying it I wrote my own in my NixOS config with a NixOS module to set up a systemd unit to run it. Because Nix packages are effectively build scripts, whenever I update Nix automatically pulls the latest version of Niri and compiles it without me having to think about it anymore.
  • I use the Neovide package from nixpkgs with an override to compile with my custom patch. Like with Niri my configuration automatically gets the latest Neovide version and builds it with my patch when I update, and I don't have to think about it anymore. I use this overlay to do that:
modifications = final: prev: {
  neovide = final.neovide.overrideAttrs (oldAttrs: {
    patches = (oldAttrs.patches or [ ]) ++ [ ./neovide-font-customization.patch ];
  });
};

You can see that I compile some things from source. That's fine on my desktop, but takes a while on my travel laptop. But I don't need to compile on my laptop because I can use Nix's binary cache feature. I push my NixOS and Home Manager configurations to Github, and I have Garnix build everything that I push. Garnix stores everything it builds in a binary cache. So when I pull my latest configuration version on my laptop it downloads binaries from that cache.

[-] ultra@feddit.ro 0 points 7 months ago

Just wait until you mess up something like DNS or delete every text editor and you'll be grateful for rollbacks.

[-] wwwgem@lemmy.ml 1 points 7 months ago* (last edited 7 months ago)

Can you elaborate? I messed up DNS when I started with Arch and it was easy to recover from that. For text editing, I'm using neovim and can go back with undotree. Of course, if I delete my file and remove it from the trash it's too late. Can you recover deleted files with NixOS?

[-] ultra@feddit.ro 3 points 7 months ago

That's not what rollbacks are for.

On NixOS, to change most configs, you need to rebuild.

To rebuild, you need internet.

If you mess up DNS, you need to rebuild to gain internet.

But you need internet to rebuild, so you can't.

That's when rollbacks are useful

[-] wwwgem@lemmy.ml 1 points 7 months ago* (last edited 7 months ago)

Got it. So you can rollback without Internet access. I get that point and Arch can also do that with pacman -U. Again I feel like I'm just stupid and am missing something. Like I said I genuinely try to figure out what it is. NixOS would be the only distro I could consider switching to and that's why I'm currently testing it.

[-] fishinthecalculator@lemmy.ml 5 points 7 months ago

They do very different things even if the outcome is the same. You are not rollingback your system by downgrading each package. You are statefully changing your filesystem. Rollbacks in Nix and Guix are internet free, atomic and reproducible because they amount to changing the target of a single symlink

[-] Laser@feddit.de 4 points 7 months ago

One issue with rollbacks Arch has is that there's basically only up to three valid configurations available at any time. These are your current system configuration (oldest state), upstream repositories (newest) and your local database copy (somewhere in-between, though all three states can be identical, e.g. straight after Syuing). By definition, you can't convert your system configuration back to an older one because it's the oldest one of the three already. What you can do is mix your current oldest configuration with packages from the cache, older or newer doesn't actually matter. But you're not getting back the old state really, you're creating a new one that's different from Arch's repository.

A configuration on NixOS includes all exact package versions and their exact configurations. No exceptions.

If you actually need these guarantees is a different question. I used Arch for 15 years and never had significant issues. I switched to NixOS instantly after trying it on an old notebook and immediately recognized that the whole approach suits me so much better that I switched almost all machines over by now.

[-] wwwgem@lemmy.ml 2 points 7 months ago* (last edited 7 months ago)

Very nice explanation. I also recognize this point for NixOS.After reading so many comments, they all confirm what I've read before and I may realize that my real problem is already having a stable system which means not being in need for some "advanced" recovery options. That being said, I'm still curious and will continue testing NixOS.

Not that I really have too much spare time but I do enjoy learning and tweaking NixOS. With its current development state, things are changing a lot so it can keep me busy for months. That's probably what I was mostly looking for: another toy to play with. Will see if I actually switch to NixOS at some point. Thanks again for your feedback.

load more comments
view more: next ›
this post was submitted on 13 Jan 2024
36 points (82.1% liked)

Linux

46611 readers
962 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS