From 7fd43cf252d0ad656ad7913c3daaa5598d4cfcd0 Mon Sep 17 00:00:00 2001 From: Xavier Lagraula Date: Wed, 6 May 2026 18:18:13 +0200 Subject: [PATCH] Removed useless artifact (create-lxc.sh and some folders). Removed references to nix-sops. --- README.md | 36 ++++++++++++++--------------- scripts/create-lxc.sh | 53 ------------------------------------------- 2 files changed, 18 insertions(+), 71 deletions(-) delete mode 100644 scripts/create-lxc.sh diff --git a/README.md b/README.md index cc942ba..30b045a 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,14 @@ ### **Objectives** -| Objective | Description | Priority | -| --------------------------------| --------------------------------------------------------------------------------------| ----------| -| Centralize configurations | A single Git repository for all machines. | ⭐⭐⭐ | -| Modularity | Reusable modules for services, machine types, and user profiles. | ⭐⭐⭐ | -| Automation | Scripts to deploy configurations to machines and containers. | ⭐⭐⭐ | -| Security | Secret management with `sops-nix` or `agenix`. | ⭐⭐ | -| Portability | Autonomous modules via `callPackage`. | ⭐⭐ | -| Maintenance | Clear documentation and simplified update processes. | ⭐ | +| Objective | Description | Priority | +| ---------------------------| ------------------------------------------------------------------| ----------| +| Centralize configurations | A single Git repository for all machines. | ⭐⭐⭐ | +| Modularity | Reusable modules for services, machine types, and user profiles. | ⭐⭐⭐ | +| Automation | Scripts to deploy configurations to machines and containers. | ⭐⭐⭐ | +| Security | Secret management with `sops-nix` or `agenix`. | ⭐⭐ | +| Portability | Autonomous modules via `callPackage`. | ⭐⭐ | +| Maintenance | Clear documentation and simplified update processes. | ⭐ | --- @@ -245,7 +245,7 @@ nixos-infra/ ## **🔐 Secret Management** -- **Tool** : `agenix` (recommended) or `sops-nix`. +- **Tool** : `agenix`. - **Process** : 1. Encrypt secrets with `age` : ```bash @@ -267,15 +267,15 @@ nixos-infra/ ## **📅 Roadmap** -| Step | Description | Status | Priority | -| ------------------------------- | ------------------------------------------------- | ------ | -------- | -| Test the NixOS LXC template | Verify that the template works under Proxmox. | ⬜ | ⭐⭐⭐ | -| Finalize `create-lxc-nixos.sh` | Test the creation of an LXC container. | ⬜ | ⭐⭐⭐ | -| Write the DNS module | Module for the DNS service (Bind). | ⬜ | ⭐⭐⭐ | -| Configure `agenix` | Encrypt the first secrets. | ⬜ | ⭐⭐ | -| Document the process | `README.md` to explain deployment. | ⬜ | ⭐⭐ | -| Automate with Ansible | Playbook to create multiple containers. | ⬜ | ⭐ | -| Integrate CI/CD | Test configurations before deployment. | ⬜ | ⭐ | +| Step | Description | Status | Priority | +| --------------------------------| -----------------------------------------------| --------| ----------| +| Test the NixOS LXC template | Verify that the template works under Proxmox. | ⬜ | ⭐⭐⭐ | +| Finalize `create-lxc-nixos.sh` | Test the creation of an LXC container. | ⬜ | ⭐⭐⭐ | +| Write the DNS module | Module for the DNS service (Bind). | ⬜ | ⭐⭐⭐ | +| Configure `agenix` | Encrypt the first secrets. | ⬜ | ⭐⭐ | +| Document the process | `README.md` to explain deployment. | ⬜ | ⭐⭐ | +| Automate with Ansible | Playbook to create multiple containers. | ⬜ | ⭐ | +| Integrate CI/CD | Test configurations before deployment. | ⬜ | ⭐ | --- diff --git a/scripts/create-lxc.sh b/scripts/create-lxc.sh deleted file mode 100644 index 46401dc..0000000 --- a/scripts/create-lxc.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash - -# Usage: create-lxc.sh --proxmox-server SERVER --user= --identity FIEL [--config-file LXC_CONFIG_FILE] - -# Parse command line arguments using docopts - -# Connect to Proxmox VE server using provided credentials - -# Create LXC container with provided configuration - -# Configuration can be provided via stdin or a file - -# Fail if both stdin and file are provided - -# Example usage: -# cat lxc-config.conf | ./create-lxc.sh --proxmox-server=192.168.1.1 --username=admin --password=password -# or -# ./create-lxc.sh --proxmox-server=192.168.1.1 --username=admin --password=password --config-file=lxc-config.conf - -# Example lxc-config.conf: -# lxc.network.type: veth -# lxc.network.link: eth0 -# lxc.network.flags: up -# lxc.network.hwaddr: 00:16:3e:xx:xx:xx -# lxc.network.ipv4: 192.168.1.100/24 -# lxc.network.ipv4.gateway: 192.168.1.1 -# lxc.network.ipv6: 2001:db8::100/64 -# lxc.network.ipv6.gateway: 2001:db8::1 - -# Parse command line arguments using docopts - -# Connect to Proxmox VE server using provided credentials - -# Create LXC container with provided configuration - -# Configuration can be provided via stdin or a file - -# Fail if both stdin and file are provided - -# Example usage: -# cat lxc-config.conf | ./create-lxc.sh --proxmox-server=192.168.1.1 --username=admin --password=password -# or -# ./create-lxc.sh --proxmox-server=192.168.1.1 --username=admin --password=password --config-file=lxc-config.conf - -# Example lxc-config.conf: -# lxc.network.type: veth -# lxc.network.link: eth0 -# lxc.network.flags: up -# lxc.network.hwaddr: 00:16:3e:xx:xx:xx -# lxc.network.ipv4: 192.168.1.100/24 -# lxc.network.ipv4.gateway: 192.168.1.1 -# lxc.network.ipv6: 2001:db8::100/64 -# lxc.network.ipv6.gateway: 2001:db8::1