Lurker News
I've been interested in NixOS for quite some time. Seems to be a system thats all about configuration management. But seems the one config they refuse to support or even acknowledge, is an alternative to systemd. (openrc, sysV, others)

Comments (4) 2 threads

davydm1 reply#
I use Gentoo, with open-rc, so hear me out:

I far prefer open-rc over systemd, but I've seen a lot, lately, of releases that _rely_ on systemd. People seem to think it's the standard, so that's what people target, instead of trying to make stuff that's init-agnostic. Perhaps that's what's driving it - the things that Gentoo supports in open-rc land are extra work for someone (which I highly appreciate), but at the end of the day, that's often the tightest constraint on a distro: maintainers. It's often just about "who is going to do the work?", followed by "can we make the experience as good as we have it with systemd?". It's a tall order, I think.
I literally switched to Gentoo from some deb-based distro (I forget which: I cut my teeth on debian, used it for years, then internet was fast enough to use something that updates more regularly, so I switched to ubuntu - also, from my home country! - and variants thereafter - some closer to ubuntu (kubuntu, mint), some further away (LMDE), but always deb-based. When systemd just landed, I had so much crap with it - machine would stall at shutdown, services would just die, and where the hell are my logs? (didn't know about journalctl, and anyway, why can't I just have text logs by default?)). At the time, they were the _only_ distro with first-class support that was considered "ready". Devuan was forming, but I had had enough with Poettering's droppings (pulseaudio also died on me - frequently: enough that I wrote a watchdog script for it).
The amount of time it took Devuan to do the switch is indicative of the effort, imo.

br0ceph#
"where are my logs!!!" lol, exactly. they make a complex binary for to read logs. Its droppings all the way down with ppring. Annoying that he was working on some legit hanging fruit, but going about it in the worst ways.

Same, I landed on gentoo after trying devuan for some projects and finding out that at the time, the devuan repos were stale in certain areas and packages were not built with options i needed. At the time I was on a journey coming from BSD to linux to take advantage of all the krazy new kernel features. Prior I would use debian stable for "serious biz", but BSD for anything personal. Then systemd became a thing, and i sorta underestimated how everyone surrendered they pid1 so quickly to this huge complex doit-all software. I figured almost every distro would have its own init, like package managers.
Is devuan better at repos now?
What are the issues with supporting init-freedom? The most common, sensible sounding complaint I hear, is per-package management work. Can't a script just translate the per-package configurations over to other inits? With all this AI assisted development, shouldn't this be easy? I understand that over the years systemd has gotten its hooks deep into the system. Whatever special features it has, can possibly be implemented using something else or just sacrificed.
At the very least i would like NixOS to support a basic base install with init-freedom. The most common software without experience issues. Can even using those maintained scripts as a working example of init-freedom for other package maintainers

peter_d_sherman1 reply#
You have a whole bunch of options in this space... to make your path clearer as to what you might do exactly, you should try to distinguish your ultimate goal...

The following questions might help you on that path:
1) Are you trying to run the NixOS operating system itself?
2) Or, are you trying to get the benefit of being able to run all of the software that runs in the Nix software ecosystem, on your version of Linux, your particular Linux distro?
It's an important distinction to make!
You see, if you only want the software (Option #2), and NOT NixOS itself, then what you want is the Nix Package Manager: https://nixos.org/download/#nix
Most software that runs on NixOS -- will run on other Linux distros...
That's because under Nix (when I say 'Nix' in this context, I mean the Nix Package Manager, NOT the OS!), all downloaded files, all downloaded software, and all of the dependencies to run that software -- live in specific subdirectories under /nix/store.
For a greater understanding of /nix/store you can see the following article:
https://nixos-and-flakes.thiscute.world/nix-store/intro
and/or Google "nix store" and read the articles, and/or ask your favorite AI/LLM about it... i.e.: "How does the Nix Package manager and /nix/store work under a non-NixOS, Linux operating system?"...or a question or questions like that...)
Running the Nix Package Manager gets you software from the Nix ecosystem, and because all of it is placed under /nix/store, it will never overwrite your current distro's init system. Now there is an important nuance here... if a piece of software requires a init-system specific library to run, then typically those libraries will be fetched into their own subdirectory (or subdirectories) under /nix/store, and those may be active while the software runs -- but AFAIK, it will never overwrite your existing distro's init system...
OK, so that's Option #2.
Back to Option #1 -- running NixOS itself: If you want to run NixOS, you'll get NixOS's default init system...
If that concerns you, for security or other reasons then one option might be to run NixOS in its own Virtual Machine (VM): (https://en.wikipedia.org/wiki/Virtual_machine)...
Other options include SixOS:
https://discourse.nixos.org/t/sixos-a-nix-os-without-systemd...
https://news.ycombinator.com/item?id=42884727 (discussion, etc.)
...and those are just some of the choices that you could make, depending on what your goals are... there are definitely many more than I've outlined above; you could always ask an AI/LLM deeper, more clarifying questions about some/all of them, and even have it generate even more options for you...
Anyway, good luck in your quest!

br0ceph#
Thanks man, I will look into both options.

Maybe i could combine gentoo and nix. Use gentoo for the base system, and /nix/ for a package hell.

All comments shown.