summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-01-01 00:03:22 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-01-01 00:03:22 +0100
commit62b442c075e0b97db24e2fa5790250535f44e41e (patch)
tree5a816313500189a150a6c8961a0b21fa5f149d97 /hosts
parentacf56e4589f4b968d22186b624e652b2021d2fa2 (diff)
downloadnixos-62b442c075e0b97db24e2fa5790250535f44e41e.tar
nixos-62b442c075e0b97db24e2fa5790250535f44e41e.tar.gz
nixos-62b442c075e0b97db24e2fa5790250535f44e41e.tar.bz2
nixos-62b442c075e0b97db24e2fa5790250535f44e41e.tar.xz
nixos-62b442c075e0b97db24e2fa5790250535f44e41e.zip
vidhar: prometheus: ...
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/prometheus/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix
index e429df4b..c6d926f6 100644
--- a/hosts/vidhar/prometheus/default.nix
+++ b/hosts/vidhar/prometheus/default.nix
@@ -54,11 +54,11 @@ in {
54 "surtr" = ["YP/sWEUWw51czlGxvgrgyEZ+ssx/3C9siufgd0a8d3g=" "6V2EjwvZ07Pebc9g9TNqIlQu57MvqyUsCeIOzky4Txw="]; 54 "surtr" = ["YP/sWEUWw51czlGxvgrgyEZ+ssx/3C9siufgd0a8d3g=" "6V2EjwvZ07Pebc9g9TNqIlQu57MvqyUsCeIOzky4Txw="];
55 "vidhar" = ["IOuHpNQ2ff09HCPKtKY95lDXoRhd8FIBsbB8kaMeUUA=" "jdaF4sx+dhdkTNGxQI6g6JV4XwXgD9QQJQ4f0NYy1gY="]; 55 "vidhar" = ["IOuHpNQ2ff09HCPKtKY95lDXoRhd8FIBsbB8kaMeUUA=" "jdaF4sx+dhdkTNGxQI6g6JV4XwXgD9QQJQ4f0NYy1gY="];
56 }; 56 };
57 in concatMapStringsSep "\n" ({ name, value }: '' 57 in pkgs.writeText "wireguard-config" (concatMapStringsSep "\n" ({ name, value }: ''
58 [Peer] 58 [Peer]
59 # ${name} 59 # ${name}
60 PublicKey=${value} 60 PublicKey=${value}
61 '') (concatLists (mapAttrsToList (host: hostKeys: map (nameValuePair host) hostKeys) keys)); 61 '') (concatLists (mapAttrsToList (host: hostKeys: map (nameValuePair host) hostKeys) keys)));
62 }; 62 };
63 }; 63 };
64 64