logoalt Hacker News

wasting_timetoday at 12:22 AM1 replyview on HN

I didn't know Nix had support for embedded systems. Where are the images defined?


Replies

KingMachiavellitoday at 1:30 AM

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