I’ve spent the last couple of days trying to get NixOS on my OVH dedicated server, bootstrapping it from the OVH rescue mode.
Goal: To get a proper partitions -> RAID -> LUKS -> LVM -> ext4 setup for the data partition, unencrypted / for booting through, but and RAID for everything, including the EFI System Partition (ESP). (I also tried legacy boot, but that only gave me a black screen.)
You can find the script I wrote for it, including detail instructions and explanations, here:
Thanks to clever on IRC who helped me with much of it.
For my own usage, this is only to bootstrap the server to NixOS; afterwards I’ll manage it with nixops.
That’s great! Thanks a lot for tackling this. I failed doing that a few
months ago:
It’s a shame to see this living in a gist though, we probably could
share the maintenaince burden of those scripts. Creating a git
repository hosting these provisionning scripts under the nix community
org would make a lot of sense IMHO.
I’m up for that. I started with gists because I did it as a one-off for my own usage and just quickly wanted to code dump the thing into the public in case others have the same problems, but by now I’ve done on various servers, investigated some more details, and this could be ready to move under some repo.
nixos-install-scripts sounds good. I can import a repo, so if someone creates it just ping me on freenode (worldofpeace), matrix (worldofpeace), or here
I also made a nixos-install-scripts team, but I don’t have permission to add the repo to it under Sign in to GitHub · GitHub. Could an admin do it for me?