2024-12-10 00:41:37 -08:00
# NixOS Proxmox LXC Container Configuration
2024-12-10 04:21:30 -08:00
A comprehensive toolkit for managing NixOS containers in Proxmox VE. This repository provides automated configuration and management tools for NixOS LXC containers.
2024-12-10 00:41:37 -08:00
2024-12-10 04:21:30 -08:00
## 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
```bash
2024-12-10 05:12:08 -08:00
curl -sSf https://git.jeirslab.xyz/jeirmeister/NixOS-PVE-Deployment-Util/raw/branch/main/setup.sh | bash
2024-12-10 04:21:30 -08:00
```
## What It Does
The installation script will:
1. Install required dependencies (git)
2024-12-10 05:08:06 -08:00
2. Clone/update the configuration repository to `/root/.nixos-utils`
3. Install the configuration utility system-wide
4. Detect and list available NixOS containers
5. Apply optimized configuration settings
6. Configure proper LXC terminal access
7. Set up system maintenance tasks
2024-12-10 04:21:30 -08:00
## Manual Installation
If you prefer to inspect the code first:
2024-12-10 00:41:37 -08:00
```bash
2024-12-10 04:21:30 -08:00
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
2024-12-10 05:08:06 -08:00
├── get-latest.sh # Download latest NixOS builds
└── post-deploy.sh # Post-deployment tasks
2024-12-10 00:41:37 -08:00
```
2024-12-10 04:21:30 -08:00
## 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.
2024-12-10 00:41:37 -08:00
2024-12-10 05:08:06 -08:00
## License
MIT License - See LICENSE.md for details
2024-12-10 04:21:30 -08:00
## Note
2024-12-10 00:41:37 -08:00
2024-12-10 04:21:30 -08:00
Always review scripts before running them with curl. You can inspect all source code at the repository.