nixops-hetzner icon indicating copy to clipboard operation
nixops-hetzner copied to clipboard

Deploying to root-on-ZFS on Hetzner

Open Baughn opened this issue 8 years ago • 2 comments

This is a useful configuration, but one which doesn't seem to be possible at the moment; there's no "zfs" verb in pykickstart.

I don't think it would be too difficult to add. I was going to say that I'd offer to add it, but on second thought I don't have a high-bandwidth uplink to run nixops from, which is apparently necessary...

This feature request can stay.

Baughn avatar Jul 08 '16 23:07 Baughn

this is something i'd like to get working if you can point me in the right direction.

r14c avatar May 10 '17 15:05 r14c

@Baughn & @r14c one option would be https://github.com/cleverca22/nix-tests/tree/master/kexec

in theory, nixops can build the tarball, customized for the hetzner machine IP, then scp it up, and auto-execute it over ssh

after ~2 minutes, it will be running nixos from a ramdisk, ssh in again, and nixos-install as usual, you can partition it any way you want

it also includes a justdoit script that automates the install, so the only tricky part would be making sure nixops understands how to keep it booting

cleverca22 avatar Dec 10 '17 15:12 cleverca22