News for hackers. Stuff that matters.
Re:sixos: A nix OS without systemd [video] by __MatrixMan__ on Friday January 31, 2025 @01:26AM (#42885134)
This is pretty cool. I especially like the better encrypted boot support and that it seems to harmonize better with nixpkgs (https://discourse.nixos.org/t/sixos-a-nix-os-without-systemd...). Curious about the infusions bit.

It not having systemd seems like a bit of a distraction from all of the other stuff that has gone into it.

Re:sixos: A nix OS without systemd [video] by majoe on Friday January 31, 2025 @02:59AM (#42885540)
You're right. The slides about infusions and the discussion at the end about them were unexpectedly the most interesting part of the talk.
Re:sixos: A nix OS without systemd [video] by likeabatterycar on Friday January 31, 2025 @01:32AM (#42885151)
systemd already has encrypted boot support. I suppose when you rip something out you have to reinvent all its functions. At that point, any rational person would question the reasons for doing so.

Like removing the transmission from a car out of spite then realizing you need a way to switch gears.

Re:sixos: A nix OS without systemd [video] by tinyrichard on Friday January 31, 2025 @02:17AM (#42885350)
So removing a transmission and installing/testing/improving a new design or way to solve the problem that hasn't been popularized isn't a worthy cause? How do you think we developed the first transmission? Or the various improvements we all take for granted these days? Yes, systemd can do this, but that isn't a reason to imply developing an alternative that can do the same, albeit in a different way, is irrational.
Re:sixos: A nix OS without systemd [video] by geocar on Friday January 31, 2025 @02:19AM (#42885362)
> systemd already has encrypted boot support.

It has all of those words next to a bullet point, but the implementation is quite different, and I (like the presenter and probably many many others who are clearly not you) have more confidence in a simple fuse than with systemd[1].

[1]: https://app.opencve.io/cve/?vendor=systemd_project&product=s...

> At that point, any rational person would question the reasons for doing so.

That is excellent advice. The presenter has done something you clearly cannot. You should be rational, follow your own advice, and try to figure out what those reasons are (hint: some of them are actually in the video). That might take a few hours to a few weeks of reading depending on your own experiences, and that's just how life is sometimes.

> Like removing the transmission from a car out of spite then realizing you need a way to switch gears.

When I have a new gadget I want to produce, I'm responsible for all of the code in it, so productivity, reliability, performance, and size are important to me whether I have written the code or I have merely used it in my product. I do not understand the way these things are important to the systemd people (or even if they are important at all), so for me, systemd is off-the-table to begin with.

Or to put it another way: I never needed a car in the first place, because I'm making boats, and I'm not starting with a car just because I like the people who made the engine. Ignoring "solved problems" can just make everything more expensive, and maybe I only know that because I've seen enough people make that mistake, but sometimes this is true.

Keeping an open mind means allowing yourself to be convinced too.

Re:sixos: A nix OS without systemd [video] by bythreads on Friday January 31, 2025 @02:48AM (#42885487)
Hear hear!, It's like flogging packages and frameworks at a problem without ever considering if it was easier/more efficient to roll your own.
Re:sixos: A nix OS without systemd [video] by acka on Friday January 31, 2025 @03:26AM (#42885692)
I hope this lesson has become clear more clear with the recent deepseek upset. That proved that simply throwing more money and hard to wear at a problem doesn't guarantee a better outcome, innovation seems to favor the opposite. As as Germans say the German saying goes: "
Re:sixos: A nix OS without systemd [video] by jorvi on Friday January 31, 2025 @02:43AM (#42885468)
NixOS checks/enforces its own reproducibility via systemd in various ways. It seems unlikely to me that replacing something battle-tested with a bunch of self-rolled brittle scripts will make it more reliable.
Re:sixos: A nix OS without systemd [video] by rmgk on Friday January 31, 2025 @04:57AM (#42886234)
This is somewhat ironic, given that it was systemd that replaced the battle-tested systems that came before it, and variants of your comment were used to argue against it.
Re:sixos: A nix OS without systemd [video] by jorvi on Friday January 31, 2025 @01:50PM (#42890415)
Sysvinit was brittle as hell. It was bad at preventing races (hence no parallelization), in part because it couldn't give guarantees on which services had started when, and if they started at all.

At this point Systemd its unit files are in a really nice place, to the point where Systemd can often guarantee correctness now.

Re:sixos: A nix OS without systemd [video] by knowitnone on Tuesday February 04, 2025 @11:59AM (#42935184)
"can often guarantee correctness"? So you're saying it can not at times?
Re:sixos: A nix OS without systemd [video] by Vilian on Friday January 31, 2025 @04:12PM (#42892073)
"Battle-tested systems"? Are you talking about those bash scripts that weren't reliable? lmaoo
Re:sixos: A nix OS without systemd [video] by jeffrallen on Friday January 31, 2025 @02:11AM (#42885328)
Or ripping the combustion engine out to make a better car with electric and then realizing you ALSO don't need the transmission!
Re:sixos: A nix OS without systemd [video] by imp0cat on Friday January 31, 2025 @03:16AM (#42885622)
And then later finding out that a transmission in an electric car will help you both with top speed and mileage, so you have to put it back.

This is just the same old "systemd sucks, let's rip it out" and then later reinvent everything it provides, because it was needed. Also commonly known as reinventing the wheel, the curse of any IT project.

Re:sixos: A nix OS without systemd [video] by wtetzner on Friday January 31, 2025 @04:28AM (#42886073)
> Also commonly known as reinventing the wheel, the curse of any IT project.

Continuing with the vehicle metaphors, the wheel has been reinvented many times for different purposes. The wheel on a tractor is different from that of a Formula One car.

Re:sixos: A nix OS without systemd [video] by __MatrixMan__ on Friday January 31, 2025 @08:20AM (#42887370)
See this is how we end up with things like electron.
Re:sixos: A nix OS without systemd [video] by tazjin on Friday January 31, 2025 @06:08AM (#42886591)
amjoseph focused a lot on the s6-init stuff, but I really think that infusions and the way they lead to more composable system configuration is the key thing here.

NixOS' module system works, but I don't think there's anybody who thinks it's particularly pretty or generalisable. As soon as you want to run one service twice with slightly varying config you're SOL ...

Re:sixos: A nix OS without systemd [video] by jackwilsdon on Friday January 31, 2025 @06:25AM (#42886670)
https://github.com/NixOS/nixpkgs/pull/372170 is a promising step towards running multiple instances of a service with separate configurations and decoupling from systemd.
Re:sixos: A nix OS without systemd [video] by rollcat on Friday January 31, 2025 @07:29AM (#42886991)
> I especially like the better encrypted boot support [...]

For some reason I can't directly reply to transpute's comment, but it's relevant to this thread so here goes:

> Ownerbooted sixos closes this loophole without any "trusted computing" voodoo, eliminating all unencrypted storage except for an eeprom whose hardware write-protect pin is connected to ground [...].

Desolder the EEPROM and read the secrets - the loophole is open wide without a TPM/SEP.

The point of TPM is supposed to be that it makes "yoink the laptop" attacks unviable even for state-level actors, while desoldering and reading the flash is trivial for a hobbyist with cheap tools and some patience.

However this is still an enormous step forward. All of the recent attacks on secure boot chains on Windows[1] and Linux[2] are due to usage of partially-unencrypted core system components in a complex boot chain. Sixos takes the correct approach - minimise the attack surface. All it takes is to stop rejecting the "voodoo" and take what the hardware already offers.

[1]: https://news.ycombinator.com/item?id=42747877

[2]: https://news.ycombinator.com/item?id=42733640

Re:sixos: A nix OS without systemd [video] by einpoklum on Sunday February 02, 2025 @10:00AM (#42909039)
> The point of TPM is supposed to be that it makes "yoink the laptop" attacks unviable even for state-level actors

On the contrary. TPM _is_ an attack in itself. Its result is that control lies not with you as the user but with whoever provided you with the TPM - relative to all software which uses the TPM. And if you can't avoid that kind of software, then the HW providers and the software providers have conspired against you to control your own hardware.

Re:sixos: A nix OS without systemd [video] by rollcat on Tuesday February 04, 2025 @10:52AM (#42933956)
I'm specifically referring to TPM and/or SEP as a key escrow. No other commonly available hardware provides equivalent functionality. No point in going off topic on a philosophical/sociopolitical angle.