Add --target-host
to nixos-generate-config
and nixos-install
#217891
Labels
0.kind: enhancement
Add something new
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Project description
Adding a
--target-host
option (likenixos-rebuild
has) to these tools will make remote installations much easier, and allows ad hoc installation on lightweight hardware that may not be big enough to evaluate its config.Example work flow:
nixos-generate-config --target-host HOST --root /mnt --dir .
HOST
nixos-generate-config
with--root /mnt --dir $tmp
--dir
.--dir
is mandatory when--target-host
is specifiedconfiguration.nix
intonixosConfigurations.host
nixos-install --target-host HOST --root /mnt --flake .#host
nixos-install
script.nixos-install
need not be part oftoplevel
for this to work!ssh
Nice to have:
tmux
orscreen
The text was updated successfully, but these errors were encountered: