docs: changes from johannes

WIP
This commit is contained in:
Johannes Kirschbauer
2025-09-15 17:03:33 +02:00
committed by Qubasa
parent 86c4555bc0
commit 13eba4d7c5
6 changed files with 77 additions and 112 deletions

View File

@@ -46,25 +46,6 @@ exclude_docs: |
/drafts/
nav:
- Home: index.md
- Guides:
- Getting Started:
- Creating Your First Clan: guides/getting-started/index.md
- Add Machines: guides/getting-started/add-machines.md
- Add User: guides/getting-started/add-user.md
- Add Services: guides/getting-started/add-services.md
- Deploy to Physical Machine:
- Create USB Installer: guides/getting-started/create-installer.md
- Deploy Physical Machine: guides/getting-started/hardware-report-physical.md
- Deploy to Virtual Machine: guides/getting-started/hardware-report-virtual.md
- Configure Disk Config: guides/getting-started/choose-disk.md
- Update Machine: guides/getting-started/update.md
- Continuous Integration: guides/getting-started/flake-check.md
- Convert Existing NixOS Config: guides/getting-started/convert-flake.md
- Inventory:
- Overview: guides/inventory/autoincludes.md
- Clan Services: guides/inventory/clanServices.md
- Concepts: guides/inventory/inventory.md
- Getting Started:
- Overview: index.md
- Creating Your First Clan: guides/getting-started/index.md
@@ -90,16 +71,14 @@ nav:
- Community Clan Services: guides/services/community.md
- Write Your Own Clan Service: guides/services/write-your-own.md
- Vars:
- Introduction to Vars: guides/vars/vars-overview.md
- Minimal Example: guides/vars/vars-backend.md
- Diving deeper: guides/vars/vars-concepts.md
- Introduction to Vars: guides/vars/vars-overview.md
- Minimal Example: guides/vars/vars-backend.md
- Diving deeper: guides/vars/vars-concepts.md
- Advanced Examples: guides/vars/vars-advanced-examples.md
- Troubleshooting: guides/vars/vars-troubleshooting.md
- Managing Users (OLD): guides/secrets.md
- Networking:
- Overview: guides/networking/networking.md
- Zerotier VPN: guides/networking/mesh-vpn.md
- Backup & Restore: guides/backups.md
- Sops Backend:
- Yubikeys & Age Plugins: guides/vars/sops/age-plugins.md
- Managing Users (OLD): guides/secrets.md
@@ -129,14 +108,8 @@ nav:
- Facts --> Vars: guides/migrations/migration-facts-vars.md
- Disk id: guides/migrations/disk-id.md
- Disk Encryption: guides/disk-encryption.md
- Flake-parts: guides/flake-parts.md
- Nixos-rebuild: guides/nixos-rebuild.md
- macOS: guides/macos.md
- Templates: concepts/templates.md
- Disable Secure Boot: guides/secure-boot.md
- Contributing:
- Getting Started: guides/contributing/CONTRIBUTING.md
- Debugging: guides/contributing/debugging.md
- Hacking: guides/contributing/CONTRIBUTING.md
- Advanced Debugging: guides/contributing/debugging.md
- Testing: guides/contributing/testing.md
@@ -198,32 +171,6 @@ nav:
- 05-deployment-parameters: decisions/05-deployment-parameters.md
- Template: decisions/_template.md
- Glossary: reference/glossary.md
- Clan Services:
- reference/clanServices/index.md
- reference/clanServices/admin.md
- reference/clanServices/borgbackup.md
- reference/clanServices/certificates.md
- reference/clanServices/coredns.md
- reference/clanServices/data-mesher.md
- reference/clanServices/dyndns.md
- reference/clanServices/emergency-access.md
- reference/clanServices/garage.md
- reference/clanServices/hello-world.md
- reference/clanServices/importer.md
- reference/clanServices/localbackup.md
- reference/clanServices/matrix-synapse.md
- reference/clanServices/mycelium.md
- reference/clanServices/monitoring.md
- reference/clanServices/packages.md
- reference/clanServices/sshd.md
- reference/clanServices/syncthing.md
- reference/clanServices/trusted-nix-caches.md
- reference/clanServices/users.md
- reference/clanServices/wifi.md
- reference/clanServices/wireguard.md
- reference/clanServices/zerotier.md
- Clan Options: "/options"
- Services:
- Introduction to ClanServices: reference/clanServices/index.md
- Official:

View File

@@ -0,0 +1,27 @@
Services provided by the community
!!! tip "Add your own!"
Have you built a service or a tool for? Open a PR adding a link to this page!
<div class="grid cards" markdown>
- [Your Service Foo](https://example.com) :octicons-link-external-16:
---
Does this and that
- [Your Service Foo](https://example.com) :octicons-link-external-16:
---
Does this and that
- [Your Service Foo](https://example.com) :octicons-link-external-16:
---
Does this and that
</div>

View File

@@ -3,7 +3,7 @@
Now that you have created a machine, added some services, and set up secrets, this guide will walk you through how to deploy it.
### Step 0. Prerequisites
### Prerequisites
- [x] RAM > 2GB
- [x] **Two Computers**: You need one computer that you're getting ready (we'll call this the Target Computer) and another one to set it up from (we'll call this the Setup Computer). Make sure both can talk to each other over the network using SSH.
- [x] **Machine configuration**: See our basic [adding and configuring machine guide](./add-machines.md)
@@ -75,12 +75,12 @@ This is an example of the booted installer.
There are two ways to deploy your machine:
=== "Password"
### Generating a Hardware Report
The following command will generate a hardware report with [nixos-facter](https://github.com/nix-community/nixos-facter) and writes it back into your machine folder. The `--phases kexec` flag makes sure we are not yet formatting anything, instead if the target system is not a NixOS machine it will use [kexec](https://wiki.archlinux.org/title/Kexec) to switch to a NixOS kernel.
=== "Password"
**Password**
```terminal
clan machines install [MACHINE] \
@@ -90,11 +90,10 @@ There are two ways to deploy your machine:
```
=== "QR Code"
### Generating a Hardware Report
**QR Code**
The following command will generate a hardware report with [nixos-facter](https://github.com/nix-community/nixos-facter) and writes it back into your machine folder. The `--phases kexec` flag makes sure we are not yet formatting anything, instead if the target system is not a NixOS machine it will use [kexec](https://wiki.archlinux.org/title/Kexec) to switch to a NixOS kernel.
**Using a JSON String or File Path**:
#### Using a JSON String or File Path
Copy the JSON string contained in the QR Code and provide its path or paste it directly:
```terminal
clan machines install [MACHINE] --json [JSON] \
@@ -102,7 +101,8 @@ There are two ways to deploy your machine:
--phases kexec
```
#### Using an Image Containing the QR Code
**Using an Image Containing the QR Code**:
Provide the path to an image file containing the QR code displayed by the installer:
```terminal
clan machines install [MACHINE] --png [PATH] \

View File

@@ -1,5 +1,3 @@
# Using the Inventory
Clan's inventory system is a composable way to define and deploy services across
machines.

View File

@@ -1,4 +1,3 @@
# Vars System Overview
The vars system is clan's declarative solution for managing generated files, secrets, and dynamic configuration in your NixOS deployments. It eliminates the manual steps of generating credentials, certificates, and other dynamic values by automating these processes within your infrastructure-as-code workflow.

View File

@@ -1,39 +1,28 @@
---
hide:
- navigation
- toc
---
# :material-home: What is Clan?
# Selfhost in a reliable and scalable way
[Clan](https://clan.lol/) is a peer-to-peer computer management framework that
empowers you to **selfhost in a reliable and scalable way**.
[Get started](./guides/getting-started/index.md){ .md-button .md-button--primary }
[View on Gitea](https://git.clan.lol/clan/clan-core){ .md-button }
Built on NixOS, Clan provides a **declarative interface for managing machines** with automated [secret management](./guides/secrets.md), easy [mesh VPN
connectivity](./guides/mesh-vpn.md), and [automated backups](./guides/backups.md).
Whether you're running a homelab or maintaining critical computing infrastructure,
Clan will help **reduce maintenance burden** by allowing a **git repository to define your whole network** of computers.
In combination with [sops-nix](https://github.com/Mic92/sops-nix), [nixos-anywhere](https://github.com/nix-community/nixos-anywhere) and [disko](https://github.com/nix-community/disko), Clan makes it possible to have **collaborative infrastructure**.
At the heart of Clan are [Clan Services](./reference/clanServices/index.md) - the core
concept that enables you to add functionality across multiple machines in your
network. While Clan ships with essential core services, you can [create custom
services](./guides/clanServices.md) tailored to your specific needs.
## :material-book: Guides
How-to Guides for achieving a certain goal or solving a specific issue.
## Guides
<div class="grid cards" markdown>
- [:material-clock-fast: Getting Started](./guides/getting-started/index.md)
- [Inventory](./guides/inventory.md)
---
Get started in less than 20 minutes!
Learn how about inventory
- [Vars](./guides/vars.md)
---
Learn how to use vars
- [macOS](./guides/macos.md)
@@ -41,35 +30,40 @@ How-to Guides for achieving a certain goal or solving a specific issue.
Using Clan to manage your macOS machines
- [Contribute](./guides/contributing/CONTRIBUTING.md)
---
How to set up a development environment
</div>
## Concepts
Explore the underlying principles of Clan
## Reference
<div class="grid cards" markdown>
- [Vars](./guides/vars/vars-overview.md)
- [CLI](./reference/cli/index.md)
---
Learn about Generators, our way to secret management
command line interface
- [Inventory](./concepts/inventory.md)
- [Clan Options](./options)
---
Learn about the Inventory, a multi machine Nix interface
Search all options
- [Services](./reference/cli/index.md)
---
Discover services
</div>
## Blog
Visit our [Clan Blog](https://clan.lol/blog/) for the latest updates, tutorials, and community stories.
<div class="grid cards" markdown>
- [Clan Blog](https://clan.lol/blog/)
---
For the latest updates, tutorials, and community stories.
</div>