nixos/cloudflared: fix cert.pem installation

There was a typo in the systemd service definition for cloudflared which
meant that the cert.pem file was not being correctly exposed.
This commit is contained in:
Pedro Alves 2025-05-14 20:13:18 +01:00
parent d420cf07b4
commit 75c7d0908e

View File

@ -369,7 +369,7 @@ in
RuntimeDirectoryMode = "0400";
LoadCredential = [
"credentials.json:${tunnel.credentialsFile}"
] ++ (lib.optional (certFile != null) "cert.pem:certFile");
] ++ (lib.optional (certFile != null) "cert.pem:${certFile}");
ExecStart = "${cfg.package}/bin/cloudflared tunnel --config=${mkConfigFile} --no-autoupdate run";
Restart = "on-failure";