From 762a5c0fc32bf5bf9b98e3045eea6f84d87e6626 Mon Sep 17 00:00:00 2001 From: notohh Date: Sun, 11 Jun 2023 18:19:51 -0400 Subject: [PATCH] traefik: add EnvironmentFile as a list --- hosts/sakura/services/traefik.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/sakura/services/traefik.nix b/hosts/sakura/services/traefik.nix index 298a3bc..10dc138 100644 --- a/hosts/sakura/services/traefik.nix +++ b/hosts/sakura/services/traefik.nix @@ -1,10 +1,13 @@ -_: { +{config, ...}: { sops.secrets.cloudflare-api-key = {}; networking.firewall.allowedTCPPorts = [80 443]; systemd.services.traefik = { environment = { CLOUDFLARE_EMAIL = "jch0tm2e@notohh.dev"; }; + serviceConfig = { + EnvironmentFile = [config.sops.secrets.cloudflare-api-key.path]; + }; }; services.traefik = { enable = true;