nix-config | ||
scripts | ||
.gitignore | ||
.repo-to-text-settings.yaml | ||
README.md | ||
setup.sh | ||
TODO.md |
NixOS Proxmox LXC Container Configuration
A comprehensive toolkit for managing NixOS containers in Proxmox VE. This repository provides automated configuration and management tools for NixOS LXC containers.
Features
- Automated container detection and configuration
- Optimized NixOS settings for LXC containers
- Automatic system upgrades and maintenance
- Proper terminal and shell configuration
- DHCP networking configuration
- Secure SSH access setup
- Nix Flakes support
- Garbage collection and store optimization
Quick Installation
curl -sSf https://git.jeirslab.xyz/jeirmeister/NixOS-PVE-Deployment-Util/raw/branch/main/setup.sh | bash
What It Does
The installation script will:
- Install required dependencies (git)
- Clone/update the configuration repository
- Detect available NixOS containers
- Apply optimized configuration settings
- Configure proper LXC terminal access
- Set up system maintenance tasks
Manual Installation
If you prefer to inspect the code first:
git clone https://git.jeirslab.xyz/jeirmeister/NixOS-PVE-LXC.git
cd NixOS-PVE-LXC
./setup.sh
Directory Structure
.
├── nix-config/ # NixOS configuration files
│ ├── configuration.nix # Main configuration
│ ├── lxc.nix # LXC-specific settings
│ ├── network.nix # Network configuration
│ └── users.nix # User and SSH settings
└── scripts/ # Utility scripts
├── list-lxcs.sh # Container detection
├── mount-nixos-config.sh # Configuration deployment
├── rebuild-nixos.sh # System rebuild
└── setup-lxc-terminal.sh # Terminal setup
Features in Detail
System Optimization
- Automatic garbage collection
- Store optimization
- Weekly system updates
- Nix Flakes support
Security
- SSH-based access
- No root login
- Wheel group for sudo access
- Secure default configurations
Networking
- DHCP configuration
- IPv6 support
- Proper network interface setup
Requirements
- Proxmox VE 7.0 or later
- NixOS LXC container(s)
- Root access to Proxmox host
Contributing
Contributions are welcome! Please feel free to submit pull requests or create issues for bugs and feature requests.
Note
Always review scripts before running them with curl. You can inspect all source code at the repository.