Format drifted files to satisfy the treefmt flake-check gate
Pure formatting (nixfmt/prettier/yamlfmt); no behavior change. These files predate the current treefmt config and were failing nix flake check; reformatting them makes the gate green again.
This commit is contained in:
@@ -6,12 +6,12 @@ this book is built from `docs/` and served on `control` over the ZeroTier mesh.
|
|||||||
|
|
||||||
## Machines
|
## Machines
|
||||||
|
|
||||||
| Machine | Role | Public IPv4 | Public IPv6 |
|
| Machine | Role | Public IPv4 | Public IPv6 |
|
||||||
| --------- | -------------------------------------- | ---------------- | --------------------------- |
|
| --------- | ------------------------------------- | ---------------- | ----------------------- |
|
||||||
| `control` | ZeroTier controller, monitoring, docs | `77.42.68.181` | `2a01:4f9:c013:e6d0::1` |
|
| `control` | ZeroTier controller, monitoring, docs | `77.42.68.181` | `2a01:4f9:c013:e6d0::1` |
|
||||||
| `ns1` | Knot DNS **primary** (master) | `46.224.170.206` | `2a01:4f8:c014:b5c5::1` |
|
| `ns1` | Knot DNS **primary** (master) | `46.224.170.206` | `2a01:4f8:c014:b5c5::1` |
|
||||||
| `ns2` | Knot DNS **secondary** (slave) | `157.180.70.82` | `2a01:4f9:c014:6d87::1` |
|
| `ns2` | Knot DNS **secondary** (slave) | `157.180.70.82` | `2a01:4f9:c014:6d87::1` |
|
||||||
| `mx1` | Mail server (**MX** for cnx.email) | `5.223.65.38` | `2a01:4ff:2f0:1963::1` |
|
| `mx1` | Mail server (**MX** for cnx.email) | `5.223.65.38` | `2a01:4ff:2f0:1963::1` |
|
||||||
|
|
||||||
## Access
|
## Access
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# ---
|
# ---
|
||||||
# schema = "single-disk"
|
# schema = "single-disk"
|
||||||
# [placeholders]
|
# [placeholders]
|
||||||
# mainDisk = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_117494657"
|
# mainDisk = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_117494657"
|
||||||
# ---
|
# ---
|
||||||
# This file was automatically generated!
|
# This file was automatically generated!
|
||||||
# CHANGING this configuration requires wiping and reinstalling the machine
|
# CHANGING this configuration requires wiping and reinstalling the machine
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
# ZeroTier addresses — zone transfers run over the mesh, not the public net.
|
# ZeroTier addresses — zone transfers run over the mesh, not the public net.
|
||||||
mesh = import ../mesh-hosts.nix { inherit config lib; };
|
mesh = import ../mesh-hosts.nix { inherit config lib; };
|
||||||
|
|||||||
@@ -11,8 +11,7 @@ let
|
|||||||
dir = config.clan.core.settings.directory;
|
dir = config.clan.core.settings.directory;
|
||||||
|
|
||||||
readVar =
|
readVar =
|
||||||
machine: file:
|
machine: file: builtins.readFile "${dir}/vars/per-machine/${machine}/zerotier/${file}/value";
|
||||||
builtins.readFile "${dir}/vars/per-machine/${machine}/zerotier/${file}/value";
|
|
||||||
|
|
||||||
hosts = lib.genAttrs [ "control" "ns1" "ns2" "mx1" ] (m: readVar m "zerotier-ip");
|
hosts = lib.genAttrs [ "control" "ns1" "ns2" "mx1" ] (m: readVar m "zerotier-ip");
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,10 @@
|
|||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"color": { "mode": "thresholds" },
|
"color": { "mode": "thresholds" },
|
||||||
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] },
|
"thresholds": {
|
||||||
|
"mode": "absolute",
|
||||||
|
"steps": [{ "color": "green", "value": null }]
|
||||||
|
},
|
||||||
"noValue": "no data",
|
"noValue": "no data",
|
||||||
"mappings": [
|
"mappings": [
|
||||||
{
|
{
|
||||||
@@ -41,7 +44,11 @@
|
|||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
"reduceOptions": {
|
||||||
|
"calcs": ["lastNotNull"],
|
||||||
|
"fields": "",
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
"colorMode": "background",
|
"colorMode": "background",
|
||||||
"graphMode": "none",
|
"graphMode": "none",
|
||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
@@ -72,7 +79,11 @@
|
|||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
"reduceOptions": {
|
||||||
|
"calcs": ["lastNotNull"],
|
||||||
|
"fields": "",
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
"colorMode": "none",
|
"colorMode": "none",
|
||||||
"graphMode": "none",
|
"graphMode": "none",
|
||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
@@ -110,7 +121,11 @@
|
|||||||
"overrides": []
|
"overrides": []
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
"reduceOptions": {
|
||||||
|
"calcs": ["lastNotNull"],
|
||||||
|
"fields": "",
|
||||||
|
"values": false
|
||||||
|
},
|
||||||
"colorMode": "background",
|
"colorMode": "background",
|
||||||
"graphMode": "none",
|
"graphMode": "none",
|
||||||
"textMode": "auto",
|
"textMode": "auto",
|
||||||
@@ -168,7 +183,10 @@
|
|||||||
"id": 6,
|
"id": 6,
|
||||||
"datasource": { "type": "prometheus", "uid": "victoriametrics" },
|
"datasource": { "type": "prometheus", "uid": "victoriametrics" },
|
||||||
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 6 },
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 6 },
|
||||||
"fieldConfig": { "defaults": { "unit": "short", "min": 0, "max": 1 }, "overrides": [] },
|
"fieldConfig": {
|
||||||
|
"defaults": { "unit": "short", "min": 0, "max": 1 },
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
|
|||||||
@@ -224,7 +224,10 @@
|
|||||||
"options": { "showHeader": true },
|
"options": { "showHeader": true },
|
||||||
"fieldConfig": {
|
"fieldConfig": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"custom": { "align": "auto", "cellOptions": { "type": "color-background" } },
|
"custom": {
|
||||||
|
"align": "auto",
|
||||||
|
"cellOptions": { "type": "color-background" }
|
||||||
|
},
|
||||||
"thresholds": {
|
"thresholds": {
|
||||||
"mode": "absolute",
|
"mode": "absolute",
|
||||||
"steps": [
|
"steps": [
|
||||||
@@ -245,15 +248,21 @@
|
|||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"matcher": { "id": "byName", "options": "zone" },
|
"matcher": { "id": "byName", "options": "zone" },
|
||||||
"properties": [{ "id": "custom.cellOptions", "value": { "type": "auto" } }]
|
"properties": [
|
||||||
|
{ "id": "custom.cellOptions", "value": { "type": "auto" } }
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matcher": { "id": "byName", "options": "query" },
|
"matcher": { "id": "byName", "options": "query" },
|
||||||
"properties": [{ "id": "custom.cellOptions", "value": { "type": "auto" } }]
|
"properties": [
|
||||||
|
{ "id": "custom.cellOptions", "value": { "type": "auto" } }
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matcher": { "id": "byName", "options": "instance" },
|
"matcher": { "id": "byName", "options": "instance" },
|
||||||
"properties": [{ "id": "custom.cellOptions", "value": { "type": "auto" } }]
|
"properties": [
|
||||||
|
{ "id": "custom.cellOptions", "value": { "type": "auto" } }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -283,7 +292,10 @@
|
|||||||
"id": 22,
|
"id": 22,
|
||||||
"datasource": { "type": "prometheus", "uid": "victoriametrics" },
|
"datasource": { "type": "prometheus", "uid": "victoriametrics" },
|
||||||
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 43 },
|
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 43 },
|
||||||
"fieldConfig": { "defaults": { "unit": "short", "min": 0, "max": 1 }, "overrides": [] },
|
"fieldConfig": {
|
||||||
|
"defaults": { "unit": "short", "min": 0, "max": 1 },
|
||||||
|
"overrides": []
|
||||||
|
},
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"refId": "A",
|
"refId": "A",
|
||||||
|
|||||||
Reference in New Issue
Block a user