Seriously, how do you even get started? It's like the tutorials are all, "This is a basic 'Hello World' module/flake. Now, you are a master." I would love to figure it out, but I need a little more hand holding.
I HIGHLY recommend forking a nix-config that uses flakes, home-manager, and whatever window manager you prefer. Since Nix is so versatile (and the documentation of flakes and home-manager are BAD), I found it absolutely crucial to reuse a well-architected config and slowly modify it in a VM to sketch out my config until it was stable enough to try on a real machine.
Yeah, I've had the same experience multiple times, people have been raving about it but I can't find a tutorial that is as noob-friendly as I'd need it.
Sure I guess if you can manage to get everything to work in the first place which involves following sixteen different guides across twenty-three different websites all of which with conflicting information.
for a user that isn’t trying to maintain a dev environment, it’s a bloody lot of hassle
I agree but I prefer it to things like ansible for sure. I'm also happy to never have to run 400 apt install commands in a specific order lest I have to start again from scratch on a new system.
Another place I swear by it is in the declaration of drives. I used to have to use a bash script on boot that would update fstab every time I booted (I mount an NFS volume in my LAN as if it were native to my machine) then unmount it on shutdown. With nix, I haven't had to invent solutions for that weird quirk (and any other quirks) since day one because I simply declared it like so:
IMO, where they really shine is in the context of declarative dev environments where the dependencies can be locked in place FOREVER if needed. I even use Nix to build OCI/Docker containers with their definitions declared right inside of my dev flake for situations where I have to work with people who hate the Nix way.
No end of interesting shit you can do in Nix, at one point I had zfs and ipfs entries in one of my configs. I got away from it all before flakes started to get popular.
I tried it as a docker host; the declarative formatting drove me around the bend. I get a fair bit of disaster proofing on my docker host with git and webhooks, besides using Proxmox/ZFS to host it all and back it up.
Maybe homelab stuff that you mess with a lot and need to revert or stand up a multitude? I tried it for self-hosted apps and frankly a docker host is way easier. JB guys were pushing it for Nextcloud and it was a nightmare compared to the Docker AIO. I guess you could stand it up as a docker host OS, but I just use Debian, it's pretty much bulletproof and again, less hassle.
i mean, provided that the OS has a proper graphical configurator (like most normie OSes), isn't being declarative just a straight upgrade? Configure everything once when installing and then you never have to repeat that process again.
I think your "proper graphical configurator" is doing some heavy lifting there. Of course, there's no such thing right now, so you're dealing with the coding yourself in a pretty oddly designed syntactical language, and the terrible official documentation that is the current state of affairs to do it with.
Other than that, sure, a declaritive and atomic OS would be the way to go.
My main OS (debian) ssd started throwing Io errors this Friday night and I had to work Saturday, only image I had laying around was Fedora Kinoite. So that's what I'm running until I order a new drive. I'm getting my wife a new laptop soon and was considered silverblue (she's a Mac user but very quick with tech in general).
Anyway after using it a few days, I think when I get my new drive I might just go ahead and put Kinoite on it. I'm used to running my dev stuff in containers anyway and toolbox makes it super easy. Rpm-ostree is a breeze (though it takes a minute to build on this ancient USB hdd, I'm replacing my dieing SSD with an nvme so I don't foresee the ostree builds as being an issue).
I think immutable is absolutely the way forward, especially for less computer literate folks. It will keep them more protected and if they do mess up something the rollback is a breeze.
Perhaps! I'm a big fan of immutable distros. This meme was inspired by being called an asshole for agreeing with another commment, calling it a skill issue when this one commenter flat out refused to acknowledge ANY of the positive aspects of them.
So you made a meme about how your opponent is completely irrational and you are a paragon of logic and reason, and then proceeded to declare yourself the winner?
What skill? This is not a fucking game lmao. I don't use an immutable distro because I have better things to do with my time than to try and climb a steep learning curve using some very questionable documentation. I can acknowledge the benefits, but I also acknowledge it's gonna take me time to get there. And I judge that the time investment is not worth it.
I think some of these replies have perhaps missed the powerful idea that made me fall in love with Eelco Dolstra's idea. Here's what won me over.
For example: THE main feature is that you could have a different version of say Python (for the sake of this example) installed for each dependency in your system. Let's say you had Brave working with one version of Python and another piece of software needed a previous version of Python. In an FHS style system, this would be challenging and you'd have to manually patch things to make sure the dependencies didn't step on eachother. When you updated, your patches would likely have to be changed as well. So, system administration and updating can really break things.
In a Nix store where things can be content-addressed and linked by symlinks to their specific dependencies, they would just work alongside each other due to their unique, hash based folder locations. Each folder in the Nix store is named based on the sha256 hash of that piece of software's ENTIRE dependency graph, which has powerful implications.
Because of this hash, they’re effectively hermetically sealed from each other and cannot step on each other. The software in the Nix store talks to eachother through symlimks that were made upon compilation of the system.
This is the very definition of Nix and taken far enough to define a whole OS is SUPER powerful concept.
As far as I can tell it separates the base os from user changes which could break things by forcing you to use containers by annoying you to death any time you're trying to permanently install a package.
It's fine but it seems better for servers than users.
Basically the idea is to separate your system packages and your applications.
The system packages are installed and updated "atomically" i.e. in transactions. If a transaction fails, results in a broken system, or you just don't like it, you can rollback anytime.
Applications on the other hand are usually installed in a containerized form. Basically, flatpak. You should avoid installing applications through the system package manager.
CLI apps is where it all gets interesting, and usually people use distrobox, docker/podman or toolbx to run stuff in containers. Although the universal blue project comes with brew prepackaged for when you want CLI apps installed system-wide without juggling containers.
The benefit is that your OS and your apps are separate. No dependencies breaking or conflicting. And if something does break, well just roll back.
Shoving your entire system config into a couple DSL files is elegant? Sorry, I'll stick to OpenBSD's ports system and periodic rsync backups, that give me all the same benefits without the mountain of XY problems. Gentoo would also like a word, but they're too busy recompiling all of llvm with one build flag changed to give input. Hope you never have to use anything other nix, since you've spent all your time learing to configure an abstraction layer instead of interfacing with the real underlying tooling.
I'm not familiar with ports, does it provide an easy way to install packages of a particular version? Is it OpenBSD only, or just a system of installing things?
I've got no dog in the race as of yet, I've bounced off of nixos a few times because of the general lack of consistency from one package to the next in terms of configuration options made available in the Nix language.
Genuinely curious about how it compares. The nix package manager seems fairly promising, even on non-Nix systems, if I could ever convince myself I needed it
I’m not familiar with ports, does it provide an easy way to install packages of a particular version? Is it OpenBSD only, or just a system of installing things?
OpenBSD's ports are just a collection of perl scripts and makefiles managed by a VCS (usually CVS though there are mirrors). Due to how recursive CVS works, you can easily update any part of the tree to a different commit/tag.
$ cd ${PORTSROOT}/games/stone-soup
$ cvs up -CPd -D 'some date_spec' #or -r some_tag
$ make install
$ヽ༼ຈل͜ຈ༽ノ enjoy your old or backported videos games
very scriptable, should be easy to figure out how to automate this should you need to.
It seems to me that almost all native English speakers got principal and principle backwards. I'm actually surprised when I see them used correctly (which is not the case here).
As a child in the US I was taught "The Principal is you 'pal'." which is not true but helpful when spelling it. Like "dessert" has more 's' than "desert" because it's something you want more of.