this post was submitted on 08 Jun 2023
111 points (98.3% liked)
Asklemmy
43945 readers
638 users here now
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
- Open-ended question
- Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
- Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
- Not ad nauseam inducing: please make sure it is a question that would be new to most members
- An actual topic of discussion
Looking for support?
Looking for a community?
- Lemmyverse: community search
- sub.rehab: maps old subreddits to fediverse options, marks official as such
- !lemmy411@lemmy.ca: a community for finding communities
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I use NixOS. The nice thing about NixOS is that you can set the state of most of your computer in a file or files that can be tracked on git, and any updates can be rolled back.
Can you do it with debian / ubuntu?
Sort of. Nix can be thought of as your package manager + ansible + snapshotting tool + pyenv + docker tool. By this I mean a flake can set up an isolated dev environment that isn't exposed. You can switch between profiles (and with NixOS you can boot into a previous generations). You can define and spawn a docker or qemu instance; especially useful launching an instance that mirrors your config.
Cool part though is you can use nix outside of NixOS so easy enough to start moving dotfiles to home-manager, or use it for grabbing packages. For example, on my Ubuntu machine it sets up my git, neovim (it also fetches plugins for nvim), fish config and installs apps like yubioath and qtcreator that I don't want to manually fetch. Also I use "nix run" almost daily for running apps without "installing" them for those one off cases.
Probably wouldn't recommend it for someone who just wants a "fire and forget" installed OS. But, on the other hand, I installed it on my wifes laptop and she can't tell the difference, and I get an easy job managing it.
Sorry if that was a bit long. Been using NixOS for about 6 months now and I'm finding it actually exciting. Can recommend watching Matthew Croughan's SCaLE 2023 video for an interesting demo.
Yes, using any of the available config mgmt systems like Ansible, SaltStack, etc. This is how we create predictable cloud instances among other use cases. You can describe as little or as much of your system's config in code and version it as you see fit. As for update rollbacks, that's typically done at the storage level e.g. by using Btrfs or ZFS.