Get the latest tech news
Running NixOS on Proxmox LXC
As a sort of quick follow-up to my earlier post on running NixOS on ARM LXC/LXD I decided to do the same on Proxmox and document the process...
This is where I ended up spending most of my time, since there is one significant catch to the process: Proxmox likes to run various hooks when creating containers, and these are simply not there in the NixOS tarball. Now comes another fun part: Although the container images now have a working Proxmox console (which used to be a problem in earlier releases), the default configuration.nix is now actually set up for LXD, not LXC(which was a bit of a surprise since that’s changed since my ARM adventure). After a couple of iterations, this is what I ended up with–note that I had to comment out the lxd.nix import and that besides temporarily enabling password-based ssh login for root, I kept the origintal NixOS networking settings:
Or read this on Hacker News