Skip to content

About

A multi-user, multi-host, multi-network NixOS configuration framework.

Resources

Stars

24 stars

Watchers

2 watching

Forks

Repository files navigation

Darkone NixOS Framework

Nix Tests Release NixOS Unstable License: GPL v3

A multi-user, multi-service & multi-host configuration

This project is constantly evolving according to my needs. If you'd like to be informed about upcoming stable versions, please let me know on GitHub or by subscribing to my YouTube channel (FR). Thank you!

Getting started

Try DNF in a VM, on any Linux with Nix and KVM:

nix run github:darkone-linux/darkone-nixos-framework#try

Versioning

Releases follow SemVer. While in 0.x, MINOR carries the breaking changes (etc/config.yaml schema, darkone.* options, public just recipes, usr/ layout); PATCH never does. 1.0.0 marks the public launch.

Pin a release and commit your flake.lock:

dnf.url = "github:darkone-linux/darkone-nixos-framework/vX.Y.Z";

See the CHANGELOG, the upgrade guide and, for contributors, the release procedure.

Main features

Feature Description
💿 Assisted install Installer ISO + darkone new wizard, nixos-anywhere & disko
🔄 Fleet updates fleet-update: build, test by waves, switch, AI report
👤 User profiles Profiles with Home Manager: admin, student, gamer, child…
🖥️ Host profiles Host profiles: servers, gateways, desktops, laptops, VMs…
🌐 Tailnet VPN Full-mesh VPN with headscale + tailscale, independent zones
🛡️ Ad-free web Secure, ad-free browsing: AdGuard Home + nftables firewall
🔑 Single sign-on Kanidm SSO: one identity for (almost) every service
🤗 Smart services Immich, Nextcloud, Matrix, Jellyfin, Vaultwarden, etc.
💻 Clean GNOME Streamlined GNOME desktop, with stable and useful apps
♿ Accessibility umi profile: touch, voice and eye-gaze input
💾 3-2-1 backups Robust, encrypted, distributed backups with Restic
🤖 Generative AI On-premises AI: Open WebUI + Ollama, AI spaces with agents
🏠 Homepage Automated homepage: quick access to every service

Under the hood

Specificity Description
❄️ Declarative & immutable Fully reproducible configuration, built on Nix / NixOS
🔐 Secrets Simple and reliable secret strategy with sops-nix
💽 Disk encryption LUKS, remote unlock over SSH, YubiKey login and unlock
🧱 High-level modules NixOS modules, easy to enable and configure
📐 Consistent architecture Extensible and scalable, customizable
✴️ Reverse proxy Services spread across servers behind Caddy proxies
🛜 Auto-networking Zero-conf plumbing (DNS, DHCP, firewall…) with dnsmasq
📈 Monitoring & alerts Prometheus, Grafana, Loki, Alertmanager → Matrix
⚡ Binary caches Harmonia and per-zone caches, builds spread over the fleet
📦 MicroVMs microvm.nix guests, deployed and monitored like any host
🧪 Tested nix-unit tests, NixOS VM scenarios, CI lint and eval

Main services

Service Purpose
🔐 Vaultwarden Password vault, with the Bitwarden browser and mobile apps
☁️ Nextcloud Personal cloud: files, sharing, sync with computers and phones
📂 OxiCloud Fast, lightweight cloud: files, calendars, contacts
🖼️ Immich Photos and videos, face recognition, local AI search
💬 Matrix Chat and video calls, kid-safe, bridges to WhatsApp & co
📹 Jitsi Meet Video conferencing, right in the browser
🎬 Jellyfin Netflix-like media library: movies, shows, music
📝 Outline Notes and wiki, personal or shared
📄 Docs Collaborative document editing (La Suite numérique)
🍽️ Mealie Recipes, meal plans and shopping lists
🌳 GeneWeb Family tree and genealogy
🔎 SearXNG Private metasearch engine, no tracking
🤖 Open WebUI Local generative AI, powered by Ollama
🦞 OpenClaw Personal AI assistant, in a private AI space
🧑‍💻 Forgejo Git forge for code and versioned documents
🛑 AdGuard Home Ad and malware blocker for the whole network

Full catalogue: service modules.

SSO status

  • OAuth2: supports OAuth2 / OIDC
  • Native: no plugin or external component required
  • PKCE: supports PKCE
  • Declarative: all settings can be declared in NixOS
  • OK: works on my configuration

✅ yes · ❌ no · ☑️ idempotent script / daemon · 🔁 via OAuth2 Proxy · ℹ️ shared access, no SSO

Application OAuth2 Native PKCE Declarative OK Comments
Mealie ✅ ✅ ✅ ✅ ✅ Works perfectly
Vaultwarden ✅ ✅ ✅ ✅ ✅ Fill the right e-mail first
Matrix ✅ ✅ ✅ ✅ ✅ Via MAS (+Element +Coturn)
Open WebUI ✅ ✅ ✅ ✅ ✅ Works fine (+Ollama)
Grafana ✅ ✅ ✅ ✅ ✅ Works fine
LaSuite Docs ✅ ✅ ✅ ✅ ✅ Works fine
Immich ✅ ✅ ✅ ✅ ✅ settings + secretSettings
OxiCloud ✅ ✅ ✅ ✅ ✅ Account created at 1st login
Headscale ✅ ✅ ✅ ✅ ✅ Personal devices login
Outline ✅ ✅ ✅ ✅ ✅ Works fine
Forgejo ✅ ✅ ✅ ☑️ ✅ add-oauth oneshot
Nextcloud ✅ ✅ ✅ ☑️ ✅ user_oidc, occ-provisioned
OAuth2 Proxy ✅ ✅ ✅ ✅ ✅ Linked to Caddy & Kanidm
Homepage 🔁 🔁 🔁 🔁 ✅ Via OAuth2 Proxy
Prometheus 🔁 🔁 🔁 🔁 ✅ Via OAuth2 Proxy
OpenClaw 🔁 🔁 🔁 🔁 ✅ AI space members only
Jellyfin ℹ️ ℹ️ ℹ️ ℹ️ ℹ️ Common access
AdGuard Home ℹ️ ℹ️ ℹ️ ℹ️ ℹ️ Common access
GeneWeb ℹ️ ℹ️ ℹ️ ℹ️ ℹ️ Common access

Fleet updates in one command

just fleet-update updates, builds and deploys the whole fleet, wave by wave.

  • 🔄 Update → build → publish → test by waves → switch → report.
  • 🤖 AI analyses failures, fixes services or code, and summarises the run.
  • ⏰ Optional daily unattended run, with its report sent to Matrix.
  • 📖 Guide: updating the fleet with fleet-update.

DNF Fleet Updater

Homepage screenshot

Homepage screenshot

One configuration for a full network

New network architecture

Easy admin with Just

Just DNF Command

Easy Nix code clean, generation and fix

Just DNF Command

Easy multi-host deployment

Just DNF Command

About

A multi-user, multi-host, multi-network NixOS configuration framework.

Resources

Stars

24 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages