|
|
|
|
|
by KingMachiavelli
161 days ago
|
|
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 |
|
nixos-rebuild build-vm (--flake DIR#HOSTNAME / configuration.nix)
./result/bin/SCRIPT
to build and launch a nixos vm with qemu.