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.
[ Parent
| on HN ]
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?
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.
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.
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.