selfhostblocks
selfhostblocks copied to clipboard
deployment options
An impressive piece of work!
I read that your are having problem with nixops2, that projects seems have be forgotton about.
May i recommend you have a look at nixinate.
It's just a shell script, but it uses nix primitives to deploy machines. I think it would be idea for selfhostblocks.
https://github.com/MatthewCroughan/nixinate
give it a try and see what you think, there are other more sophisticated tools, but for this job it's perfect and simple!!
Making a flake which can deploy to multiple systems should be very easy.
reach out if you got questions!
I see your using colmena for deployment , so that also might be a great option.
Hi! Thanks for raising this comment. And thanks for the praise! 🙏
I like the idea behind nixinate. Being able to just do a nix run
to deploy is pretty cool.
As you saw I’m a happy user of colmena now. TBH I’ve got so many things I already want to tackle that I don’t want to invest time right now changing something that works. 😅 I’m using colmena to deploy to my server, a Raspberry Pi I use for dnsmasq and my laptop. It’s been a flawless experience.
Also, I don’t envision selfhostblocks as a tool that deploys. At least not now. I see it as a collection of NixOS modules that provide an out of the box experience to self host some hand picked services and a set of NixOS modules to help self host any service you want.
But I agree, selfhostblocks should work with any deployment tool. I think that should already be the case though as it’s just NixOS modules and I’m not using any deployment specific options AFAIK.
Now that I’m writing this, maybe you are talking about the home assistant VM demo?
Yep, read and understood, and fair points there.
What i love about nix is there are so many ways to do something, and thats what i hate about it too.
:-)
it's chaos, but it's reproducible chaos, so that then becomes order! :-)
Haha I totally feel that too. I think it’s all thanks to nix’s power in the first place, but you know what they say about having great power… 😅
If you’re up to it, you could copy the home assistant demo in a sibling folder and adapt the flake file and the instructions to use nixinate
. Or maybe you can do that directly in the existing demo and support both colmena and nixinate at the same time? Zero pressure though, it’s just an idea.
I'm have to stick with imagineering at the moment, because i have my hands full with a load of other stuff, modifying this code for any nix deployment tools should be fairly easy.
Nix really does suit building complex server configurations that are reliant on the cloud, so congratulations for connecting the dots, and rolling an nixos application server, your ahead.
whats not to like.
FWIW I added instructions on how to deploy with nixos-rebuild
https://shb.skarabox.com/usage.html#usage-example-nixosrebuild