Any chance to do offline install

I am trying to create offline install iso, im trying metods from wiki, doesnt work, than im trying to sudo nixos-rebuild build-image --image-type --iso-installer but it doesnt help to in installing phase it trying to connect to nix cache

Did you search the posts here? See NixOS automatic unattended offline installer USB stick, More airgap questions - #13 by kotatsuyaki, Using NixOS in an isolated environment - #23 by ejpcmac, etc.

I’d like for the ISO to be able to do offline installation out of the box. Currently there’s just some odds and ends that make this not work. You basically just need to try it, see what’s missing, add it, build a new ISO, and try again. It’s really easy to misidentify what’s missing though. The error you get will likely be that nix tries and fails to fetch the source code of some distant dependency that you don’t actually need because it’s a package way further along in the dependency chain that’s actually missing.

3 Likes