this post was submitted on 25 Sep 2026
315 points (99.7% liked)

Linux

15060 readers
137 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] slartibartfast141@piefed.zip 9 points 4 days ago (2 children)

I wonder why NixOS. I've never used it, so my surface level understanding guesses that it's related to the declarative config, but we have Ansible/Chef/Puppet.

[–] john_tech@lemmy.zip 30 points 4 days ago (1 children)

Pretty sure it's because NixOS is reproducible. You can send your configs to your friend and they'll get a file-for-file identical copy of NixOS to yours (obviously except the user files)

[–] morto@piefed.social 7 points 4 days ago (1 children)

I never used it too, but it feels like something so nice for research labs

[–] onlinepersona@programming.dev 7 points 3 days ago

Or for a fleet of hardware that you control and want to have predictable outcomes.

[–] hallettj@leminal.space 23 points 4 days ago (1 children)

NixOS goes deeper than Ansible/Chef/Puppet. Those options use a declarative config, but they operate on a mutable system - in particular a system with a mutable package manager. They try to run the necessary operations to change the system state to match the config. But it's not guaranteed that you get exactly the same state if you roll back and forth between declarative config revisions, especially since there are parts of system state outside the scope of the Ansible/Chef/Puppet config.

OTOH the Nix package manager is immutable down through the package manager, and also through system config files (which are linked to the current config generation in the Nix store). If you use a lock file then the NixOS config describes the exact state of every package, and of every managed config file.

[–] slartibartfast141@piefed.zip 5 points 4 days ago

Ah, that's cool. Super useful for a sysadmin.