From eaed05c834245634856a19b0ae086d88d78c2b83 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 6 Jun 2024 12:56:55 +0200 Subject: [PATCH] style: apply treefmt --- docs/administrative-access.md | 1 + modules/prometheus/default.nix | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/administrative-access.md b/docs/administrative-access.md index 2257fe0..f22ed08 100644 --- a/docs/administrative-access.md +++ b/docs/administrative-access.md @@ -31,6 +31,7 @@ SSH is not reachable from the open internet. Instead, SSH Port 22 is protected b 2. **Wireguard device**: each wireguard device has two parts: the public key and the IP addresses it should have in the wireguard network. The pub.solar wireguard network is spaced under `10.7.6.0/24` and `fd00:fae:fae:fae:fae::/80`. To add your device, it's best to choose a free number between 200 and 255 and use that in both the ipv4 and ipv6 ranges: `10.7.6./32` `fd00:fae:fae:fae:fae:::/96`. For more information on how to generate keypairs, see [the NixOS Wireguard docs](https://nixos.wiki/wiki/WireGuard#Generate_keypair). Example NixOS snippet for WireGuard client config + ``` { networking = { diff --git a/modules/prometheus/default.nix b/modules/prometheus/default.nix index 5d0f5f7..709f6a2 100644 --- a/modules/prometheus/default.nix +++ b/modules/prometheus/default.nix @@ -54,13 +54,17 @@ }; } { - targets = [ "metronom.wg.${config.pub-solar-os.networking.domain}:${toString config.services.prometheus.exporters.node.port}" ]; + targets = [ + "metronom.wg.${config.pub-solar-os.networking.domain}:${toString config.services.prometheus.exporters.node.port}" + ]; labels = { instance = "metronom"; }; } { - targets = [ "tankstelle.wg.${config.pub-solar-os.networking.domain}:${toString config.services.prometheus.exporters.node.port}" ]; + targets = [ + "tankstelle.wg.${config.pub-solar-os.networking.domain}:${toString config.services.prometheus.exporters.node.port}" + ]; labels = { instance = "tankstelle"; };