kiskaadee 6ed6093ddb feat(authelia): secure user database via sops-nix templates
This commit removes the static users.yml file and transitions Authelia
identity management to a fully encrypted, declarative SOPS template.

- Mount /run/secrets/users.yml as a read-only volume in Authelia
- Add documentation for generating secure Argon2id password hashes
- Update setup_guide.md with the sops-nix template for declarative users
2026-06-29 00:11:45 -05:00

Traefik Homelab Core

This repository contains the core Control Plane for a modular, secure, and self-documenting homeserver architecture based on the Hardened Hub model.

It consolidates all routing, authentication, and core panel management into a single, unified Docker Compose stack, optimized for secure credentials management via sops-nix.


🏗️ Architectural Overview

The system is split into two distinct planes to ensure stability, security, and a clean separation of concerns:

1. Control Plane (This Repository)

The "nervous system" of the server. These services handle security, edge routing, identity, maintenance, and portal visualization. All services are defined in a single, root-level docker-compose.yml and state configurations are stored in ./config/:

  • traefik (v3.6): The edge gateway. Handles wildcard HTTPS (Let's Encrypt DNS-01 challenges via Dynu), reverse routing, and load balancing.
  • socket-proxy: Security boundary. Decouples containers from the host's /var/run/docker.sock.
  • authelia: Provides Single Sign-On (SSO) and 2FA protection for administrative tools and exposed applications.
  • portainer: Visual container and stack management.
  • dozzle: Real-time log streaming for core containers (SSO Protected).
  • watchtower & diun: Automated image updates and registry monitoring.
  • homepage: Central landing dashboard at the root domain (arch-services.mywire.org) serving as the entry portal.

2. Data Plane (Decoupled User Applications)

User applications (such as Gitea, Jellyfin, or Kanban boards) live in separate directories outside this repository (e.g. /home/kiskaadee/Deployments/traefik-deployments). They integrate with the Control Plane dynamically via the shared external Docker network (proxy-net) and Traefik routing labels.


🚀 Getting Started

All instructions on deployment, structure, and secrets management have been updated for this release:

👉 See the Setup & Secrets Management Guide

Quick Start (NixOS systemd Service)

If you are deploying on NixOS with the matching configuration, the service is managed declaratively. To check status or read logs:

systemctl status homeserver-core
journalctl -u homeserver-core -f

Manual Verification

If running manually (or troubleshooting config edits):

docker compose --env-file /run/secrets/homeserver.env up -d --remove-orphans

📚 Documentation

S
Description
Declarative NixOS host foundation, shared platform infrastructure, and appctl operational control plane for a self-hosted homelab.
https://kiskaadee.github.io/homelab-core/ Readme
1.8 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 92.3%
Nix 6.4%
Shell 1.3%