News for hackers. Stuff that matters.
Re:Is it time for a new Embedded Linux build system? by KingMachiavelli on Monday June 22, 2026 @09:30PM (#48639010)
What do you mean by image? In Nix you instantiate a NixOS system and specify the architecture. There are a number of tools to build a disk image from a NixOS system.

$ my-arm-system = nixpkgs.lib.nixosSystem { system = "aarch64-linux"; modules = [ ./configuration.nix ]; };

$ :b arm-system.config.system.build.images.iso

Re:Is it time for a new Embedded Linux build system? by throwawayqqq11 on Tuesday June 23, 2026 @06:53AM (#48643061)
PSA:

nixos-rebuild build-vm (--flake DIR#HOSTNAME / configuration.nix)

./result/bin/SCRIPT

to build and launch a nixos vm with qemu.

Re:Is it time for a new Embedded Linux build system? by KingMachiavelli on Tuesday June 23, 2026 @02:41PM (#48649452)
IMO the nixos-rebuild scripts are unnecessary and just obscures what’s being built.

build-vm is the same as building the configs “config.system.build.vm” attribute.

nixos-rebuild is fine for getting started but you end up needing to use the attribute path to do anything more complicated like CI caching or inspecting the drvPath.