For quite a while, I’ve wanted to try out hosting my services in NixOS LXCs, but it did not seem like there were any definitive one-stop-shop scripts such as the ones on Proxmox Helper Scripts. So, I waited for some clever cookie to make one, because surely this was not something just I was interested in.
But the cookie never appeared, and after a while of waiting, I decided that maybe I should try it myself! A few nights of chicken scratch bash later, and I’ve got a decent little script to boot up and configure a NixOS 24.11 LXC, with a configuration.nix
file!
Important disclaimer though, this script is still pretty early in development. While it does boot and set up an LXC, there is very little error handling, and don’t get me started on the UX. I just thought I’d share, and maybe get some suggestions from others.
atzanteol@sh.itjust.works 1 day ago
Do not do this. Never run scripts like this directly without inspecting them first. Do not tell people to run your exciting new script like this. Provide a link to the script and encourage users to inspect it first then run it.
Jakeroxs@sh.itjust.works 1 day ago
Unfortunately this is the standard for the proxmox community scripts
catrass@lemmy.zip 1 day ago
Noted! So just add a preceeding warning to inspect the script before running it.
Anything else I should add to the README?
atzanteol@sh.itjust.works 1 day ago
I have a very no-exceptions rule about encouraging people to do a
curl|bash
install and would just remove that. Provide a link to the script, people can run it if they want. Encouraging the behavior of just directly running scripts off the internet is a bad habit.