Build custom ISO images for Nix using github actions
Easy to create, custom ISO images for NixOS.
The idea is to create an ISO image with my presets.
- Fork this repo
- Go to the github actions section
- Click on "Build ISO"
- Trigger the workflow with the inputs you want to customize
- Wait
- Download the ISO
- Flash it
When you fork the repo, you can custommize the ganix.nix
file, and you won't need to provide
the env variables for the github action
nix flake check --impure
Supported arch aarch64-linux
nix build
Plug sd-card.
Find out USB's location.
Mac | Linux |
---|---|
diskutil list |
lsblk -l |
(output e.g: /dev/disk2
)
Check that the SD is unmounted
Mac | Linux |
---|---|
sudo diskutil unmountDisk /dev/disk2 |
sudo umount /dev/sda2 |
Burn the .img
to the sd-card
sudo dd if=result/nixos-sd-image-23.05.20230326.0cd51a9-aarch64-linux.img of=/dev/disk2 bs=1m status=progress
Remember to download the img and unzip it from the github action.
Good luck!
Take a look at nixos configuration.