News for hackers. Stuff that matters.
Re:NixOS 21.05 by e3bc54b2 on Wednesday June 02, 2021 @11:46AM (#27370041)
Alternative to what others have said, you can use your config to build a custom bootable ISO and use it to setup your new system. Comes very handy if you can't guarantee nice network for setup.
Re:NixOS 21.05 by SkyMarshal on Wednesday June 02, 2021 @01:27PM (#27371486)
Last time I tried this, the NixOS Live USB still requires network connectivity to install. Is there some way to create an ISO or Live USB that installs completely offline?
Re:NixOS 21.05 by takeda on Wednesday June 02, 2021 @03:19PM (#27372811)
Nix kind of expects to be always connected.

It is possible though, if you have the same config and use channels at the same revision (or use flakes) nix will know all packages it needs. You could fetch them and then either provide that machine as a cache, or use nix copy to copy the packages.

Re:NixOS 21.05 by alias_neo on Wednesday June 02, 2021 @11:54AM (#27370161)
This sounds like a great idea. Do you happen to know of any documentation to assist with this? I'd love to create a custom, bootable USB which I can upgrade periodically, keeping my SSH keys on a Yubikey.
Re:NixOS 21.05 by zimbatm on Wednesday June 02, 2021 @11:58AM (#27370223)
One way is to use this project: https://github.com/nix-community/nixos-generators

It's just a small wrapper but it shows you most of the targets available.

Re:NixOS 21.05 by alias_neo on Wednesday June 02, 2021 @12:05PM (#27370298)
Great, thanks!