1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
# Configuration file used to install NixOS-x86_64 on a USB stick. { boot = { loader.grub.device = "/dev/sda"; initrd = { kernelModules = ["usb_storage" "ehci_hcd" "ohci_hcd"]; }; }; fileSystems = [ { mountPoint = "/"; label = "nixos-usb"; } ]; fonts = { enableFontConfig = false; }; }