# Live Usb

# Download it

idempotent-desktop.iso ~1.7GB

# Or generate

Install nix with curl -L https://nixos.org/nix/install | sh (for non NixOS users)

Clone repo: git clone git@github.com:ksevelyar/idempotent-desktop.git && cd idempotent-desktop

Build live-usb.nix

nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=live-usb/graphical.nix

Or minimal version without X ~700MB:

nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=live-usb-min.nix

You can generate your own iso, just add new modules and remove things you don't want

# Write it to usb

sudo dd bs=4M if=/tmp/result/iso/id-live.iso of=/dev/disk/by-label/id-live status=progress oflag=sync

You can replace /dev/disk/by-label/id-live with /dev/sdX with proper device from lsblk output.

# Or run with virt-manager

virt-manager

# Try your usb in vm before reboot

sudo qemu-kvm -hdb /dev/sdc