Skip to content

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.

We utilize nixos-generators or native Nix commands to assemble the ISO directly from our configuration blueprint.

First, grab the official VeloxOS configuration tree:

Terminal window
git clone [https://github.com/VeloxOSLinux/veloxos-config.git](https://github.com/VeloxOSLinux/veloxos-config.git) ~/veloxos-config
cd ~/veloxos-config

To trigger the ISO generation, use the native nix build command pointing to our ISO profile target defined in the flake:

Terminal window
nix build .#nixosConfigurations.isoImage.config.system.build.isoImage

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:

Terminal window
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!

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.