ventoy-on-nixos.md (1266B)
1 --- 2 title: "Installing Ventoy from NixOS" 3 date: 2026-09-14T12:51:00 4 tags: ["Linux", "Servers", "Snippets"] 5 --- 6 7 A while ago I needed to format my USB key, but after this needed to install Ventoy back on it. 8 9 Previously I was using Windows as my primary desktop OS, but I'm still slowly (very slowly) moving everything over to NixOS. 10 11 So, without further ado; here's how I installed Ventoy on a USB stick from NixOS. This guide assumes you're using bash, if not; you can enter a bash shell with `bash`. 12 13 The Ventoy package currently is [considered insecure](https://github.com/NixOS/nixpkgs/issues/404663) on NixOS so you'll need to allow the installation of insecure packages before you begin, but then it's just a case of installing it via nix-shell. 14 ``` 15 export NIXPKGS_ALLOW_INSECURE=1 16 nix-shell -p ventoy 17 ``` 18 19 With that installed, you can now check over your drives, and install on `sdc` (replacing this with your USB key device): 20 ``` 21 lsblk --fs 22 sudo ventoy -i /dev/sdc 23 ``` 24 25 After this, check that it's correctly installed with `sudo ventory -l /dev/sdc` 26 27 Now, you can add your [images](/whats-on-my-usb-key/) to make this newly installed USB key actually useful: 28 ``` 29 lsblk --fs 30 sudo mount /dev/sdc1 /mnt/usb 31 sudo mv *.iso /mnt/usb/ -vin 32 sudo umount /mnt/usb 33 ```