Build VeloxOS from Source
Because VeloxOS is built on NixOS, building a custom Live ISO from source no longer requires complex host mirroring, chroots, or distribution-specific build tools. Using the power of Nix Flakes, you can compile and generate a fully functional VeloxOS installation media with a single command from any system running the Nix package manager.
๐ Building the ISO
Section titled โ๐ Building the ISOโWe utilize nixos-generators or native Nix commands to assemble the ISO directly from our configuration blueprint.
1. Clone the Configuration Repository
Section titled โ1. Clone the Configuration RepositoryโFirst, grab the official VeloxOS configuration tree:
git clone [https://github.com/VeloxOSLinux/veloxos-config.git](https://github.com/VeloxOSLinux/veloxos-config.git) ~/veloxos-configcd ~/veloxos-config2. Run the Build Command
Section titled โ2. Run the Build CommandโTo trigger the ISO generation, use the native nix build command pointing to our ISO profile target defined in the flake:
nix build .#nixosConfigurations.isoImage.config.system.build.isoImage๐ Locating your ISO
Section titled โ๐ Locating your ISOโOnce the build finishes successfully, Nix places a symlink named result in your current directory. This link points directly to the secure Nix store where your fresh ISO is located.
To find the exact path to your newly baked .iso file, run:
ls -l result/iso/You can now flash this image onto a USB drive using dd or tools like Ventoy/Etcher and boot straight into your custom VeloxOS installer!
๐ Advanced: Customizing before building
Section titled โ๐ Advanced: Customizing before buildingโThe ultimate advantage of the declarative shift: If you want to bake your own packages, dotfiles, or kernel tweaks directly into the Live ISO, you donโt need to rebuild complex overlays.
Simply edit the iso/configuration.nix (or your corresponding module file) inside the repository before running the nix build command. Your changes will be compiled cleanly into the resulting image.