Hasty Briefsbeta

The Polyglot NixOS

a day ago
  • #Cross-architecture
  • #UEFI
  • #NixOS
  • Polyglot NixOS aims to create a single disk image that runs on multiple architectures (x86_64, ARM AArch64, RISC-V 64-bit) using UEFI.
  • The process involves building a NixOS configuration, compiling system closures for each target, and combining them into one /nix/store partition.
  • The ESP (EFI System Partition) is populated with architecture-specific UKIs (Unified Kernel Images) in default firmware paths, eliminating the need for a bootloader.
  • The example provided shows minimal space savings from shared non-binary files in the Nix store, suggesting potential for larger closures.
  • Future improvements could include a fully functioning bootloader and support for multiple generations.