From 189ae77b0a9db17c1e3cf2873b608e61f9b4c6c9 Mon Sep 17 00:00:00 2001 From: pazpi Date: Fri, 30 Aug 2024 07:54:59 +0200 Subject: [PATCH] Test with agenix secrets --- hosts/metrics/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/metrics/default.nix b/hosts/metrics/default.nix index 9788988..5c79f70 100644 --- a/hosts/metrics/default.nix +++ b/hosts/metrics/default.nix @@ -5,13 +5,18 @@ ... }: { + + age.secrets = { + tailscale-authKey.file = ../../secrets/tailscale-authKey.age; + }; + my = { utils.commons.enable = true; networking.tailscale = { enable = false; exitNode = "vps"; - # authKeyFile = builtins.toFile "authKey" ''${parameters.tailscaleAuthKey}''; + authKeyFile = config.age.secrets.tailscale-authKey.path; }; virtualisation = {