News for hackers. Stuff that matters.
Re:Not-OS – NixOS-based OS generator that outputs an OS with... by trynewideas on Monday February 06, 2023 @01:28PM (#34681840)
> Fans of slimmer and systemd-less spinoffs of NixOS should perhaps also check out NixNG

So a primary difference from NixNG is that not-OS has a kernel and initial RAM disk, making it viable for running on hardware? The sparse README says it's for "embedded" purposes, but I'm struggling to understand the value of Nix here if the whole filesystem is read-only — you'd be working entirely off the RAM disk?

Re:Not-OS – NixOS-based OS generator that outputs an OS with... by nine_k on Monday February 06, 2023 @01:41PM (#34682015)
In an embedded system you likely have all the code on a read-only filesystem which is the device's flash storage. You can have a separate device for writable storage (an SD card, another piece of flash, etc), or operate on a RAM disk entirely if all you need is storing runtime-only data. The latter is how OpenWRT operates, for instance.
Re:Not-OS – NixOS-based OS generator that outputs an OS with... by vlovich123 on Monday February 06, 2023 @01:31PM (#34681878)
The Linux boot image is a squashfs image loaded into memory by your boot loader (eg grub). It can still mount other filesystems for on-disk partitions (provided the relevant file system and drivers are compiled into the kernel). 50MiB is a bit on the heavy side for many embedded use cases (ie M0 devices). It’s possible M3/M4 CPUs have enough storage and RAM to support this. It’s been a while since I checked the specs for those chips.
Re:Not-OS – NixOS-based OS generator that outputs an OS with... by monocasa on Monday February 06, 2023 @01:35PM (#34681949)
Embedded is a broad category. Yeah, this is a bit heavyweight for Cortex-M, but so is Linux just kind of in general. This would be great for a Cortex-A class SoC.
Re:Not-OS – NixOS-based OS generator that outputs an OS with... by touisteur on Monday February 06, 2023 @02:55PM (#34683322)
Wondering now whether it'd be a good fit for microvms too.
Re:Not-OS – NixOS-based OS generator that outputs an OS with... by astro1 on Tuesday February 07, 2023 @05:54AM (#34691165)
Me too :-)
Re:Not-OS – NixOS-based OS generator that outputs an OS with... by rendaw on Monday February 06, 2023 @11:58PM (#34688960)
With a read only filesystem the value is in the simple and robust tooling for assembling the image, rather than administration of the live system.

Other embedded filesystem image generation I'm aware of (like android?) require a huge swath of software and dependencies installed, byzantine build systems, star alignment, etc. Or emulation and shell scripts with timing issues, limited failure recovery/idempotency.