Install NixOS on Hetzner Online: Difference between revisions
imported>BBBSnowball add alternative bootstrap method using cloud-init |
imported>Grische m make paths for foo user absolute to avoid ambiguity |
||
| Line 100: | Line 100: | ||
# Create a initial config, just to kexec into | # Create a initial config, just to kexec into | ||
cat <<EOF > config.nix | cat <<EOF > /home/foo/config.nix | ||
{ | { | ||
services.openssh.enable = true; | services.openssh.enable = true; | ||
| Line 111: | Line 111: | ||
# Generate the kexec script | # Generate the kexec script | ||
nixos-generate -o | nixos-generate -o /home/foo/result -f kexec-bundle -c /home/foo/config.nix | ||
# Switch back to root | # Switch back to root | ||