4 ms·
I run NixOS on a VPS at work. It currently hosts a noVNC dashboard for monitoring. I didn’t nixify the app yet. I allocated a Debian and ran nixos-infect on it
by sshine 3y ago
I run NixOS on a VPS at work. It currently hosts a noVNC dashboard for monitoring. I didn’t nixify the app yet.
I allocated a Debian and ran nixos-infect on it and started from scratch, even though I have done this for two other machines, because I’m still experimenting with the basic setup.
I do commit changes to git and fork it on company git. But I don’t redeploy remotely: https://discourse.nixos.org/t/deploy-nixos-configurations-on-other-machines/22940 https://discourse.nixos.org/t/deploy-nixos-configurations-on...
I’ll need to make noVNC a part of the deployment (not just its dependencies, like python3).
I should deploy using AWS AMIs, and make a config for the dashboard.
But the NixOS on Hetzner docs are not nearly as easy to guess the best path through. Can you recommend a way to boot NixOS on a Hetzner VPS that is better than nixos-infect?
https://nixos.wiki/wiki/Install_NixOS_on_Amazon_EC2 https://nixos.wiki/wiki/Install_NixOS_on_Amazon_EC2
http://jackkelly.name/blog/archives/2020/08/30/building_and_importing_nixos_amis_on_ec2/ http://jackkelly.name/blog/archives/2020/08/30/building_and_...
- ochoseis 3y agoIf Hetzner allows custom images, then this tool may help: https://github.com/nix-community/nixos-generators https://github.com/nix-community/nixos-generators Cloud-init can be clumsy to get going, but it’s possible.
- p_l 3y agoI used kexec into nixos installer image from hetzner recovery, using nixos-generators to make the image. 1. Boot with hetzner recovery OS 2. Install Nix in it (not nixos!) 3. Install nixos-generators 4. Generate kexec-bundle image 5. run the result of 4 and continue installation from it.
- bsnnkv 3y agoI have step-by-step video guides (with accompanying git repos) for booting NixOS from zero on both Hetzner VPS instances[1] and bare metal Robot instances[2] with nixos-anywhere[3]. I used to use nixos-infect but now I'm 100% sold on nixos-anywhere. [1]: https://www.youtube.com/watch?v=wr22CyoyRo4 https://www.youtube.com/watch?v=wr22CyoyRo4 [2]: https://www.youtube.com/watch?v=nlX8g0NXW1M&t=952s https://www.youtube.com/watch?v=nlX8g0NXW1M&t=952s [3]: https://github.com/nix-community/nixos-anywhere https://github.com/nix-community/nixos-anywhere