Running NixOS on Proxmox LXC
Rui Carmo's article details running NixOS on Proxmox LXC, highlighting manual intervention needed for container creation, configuration adjustments for LXC, and plans for future enhancements like mDNS support.
Read original articleRui Carmo's article discusses the process of running NixOS on Proxmox LXC, focusing on Intel machines. He chose to use a trunk image from Hydra, downloading the latest nixos-system-x86_64-linux.tar.xz tarball into the Proxmox cluster's shared storage. The container creation required manual intervention due to Proxmox's hooks not being present in the NixOS tarball. The author provided a command for creating the container, emphasizing the need to set the --ostype to unmanaged and adjust resource sizes and network settings. After creating the container, he encountered issues with the default configuration being set for LXD instead of LXC, necessitating the disabling of certain systemd units and editing the configuration.nix file. He updated the system, set a root password, and made necessary adjustments to the configuration, including enabling password-based SSH login for root and configuring networking settings. The article concludes with the author backing up the container for easier cloning and planning to revisit the setup for additional features like mDNS. He expressed surprise at the NixOS team's rapid shift towards LXD as the default container environment.
- The author documented the process of running NixOS on Proxmox LXC, focusing on Intel machines.
- Manual intervention was required during container creation due to missing Proxmox hooks in the NixOS tarball.
- The default configuration was set for LXD, requiring adjustments to work properly in LXC.
- The author updated the system and configured SSH and networking settings.
- Future plans include revisiting the setup for additional features.
Related
At the Mountains of Madness
The blog discusses challenges in building executables for NixOS and Linux, focusing on ELF interpretation, glibc versions, and dynamic linking. It explores container use, NixOS dependency management, and proposes patchelf for cross-compatibility.
Lix 2.90 "Vanilla Ice Cream"
The Lix team released Lix 2.90 "Vanilla Ice Cream," a Nix implementation enhancing user experience with features like improved error reporting, faster evaluation, and style guide enforcement. Future plans focus on reliability and user-friendliness.
Nix Alternatives and Spinoffs
Various projects have emerged post Eelco Dolstra's exit from NixOS Foundation, offering alternatives to Nix. Auxolotl focuses on compatibility and community, Lix on backward compatibility and Rust, Tvix on Rust rewrite, Tangram and Brioche on hybrid builds, and Guix on stability.
Switching from Arch to NixOS
The author discusses their transition from Arch Linux to NixOS, highlighting improved system configuration management, challenges with documentation, and a smooth setup process, while noting a steep initial learning curve.
NixOS, Raspberry Pi and Me
Farid Zakaria upgraded his Raspberry Pi 4 with NixOS, improving his home network despite challenges in cross-compiling and module requirements, while advocating for better documentation and community feedback.
Consequently, I can say that I use NixOS under LXC on aarch64 almost every day at work. :)
It runs perfectly well under LXC! NixOS also works well under WSL2 on Windows, though setting that up takes more footwork. If you're thinking about playing around with NixOS, virtualizing it— whether hardware or OS virtualization, whether on your laptop/desktop or in your homelab— is a great way to go.
Related
At the Mountains of Madness
The blog discusses challenges in building executables for NixOS and Linux, focusing on ELF interpretation, glibc versions, and dynamic linking. It explores container use, NixOS dependency management, and proposes patchelf for cross-compatibility.
Lix 2.90 "Vanilla Ice Cream"
The Lix team released Lix 2.90 "Vanilla Ice Cream," a Nix implementation enhancing user experience with features like improved error reporting, faster evaluation, and style guide enforcement. Future plans focus on reliability and user-friendliness.
Nix Alternatives and Spinoffs
Various projects have emerged post Eelco Dolstra's exit from NixOS Foundation, offering alternatives to Nix. Auxolotl focuses on compatibility and community, Lix on backward compatibility and Rust, Tvix on Rust rewrite, Tangram and Brioche on hybrid builds, and Guix on stability.
Switching from Arch to NixOS
The author discusses their transition from Arch Linux to NixOS, highlighting improved system configuration management, challenges with documentation, and a smooth setup process, while noting a steep initial learning curve.
NixOS, Raspberry Pi and Me
Farid Zakaria upgraded his Raspberry Pi 4 with NixOS, improving his home network despite challenges in cross-compiling and module requirements, while advocating for better documentation and community feedback.