diff --git a/ops/nixos/lib/nixbuild-distributed.nix b/ops/nixos/lib/nixbuild-distributed.nix
index 90ca26035e..886c79abbb 100644
--- a/ops/nixos/lib/nixbuild-distributed.nix
+++ b/ops/nixos/lib/nixbuild-distributed.nix
@@ -30,17 +30,17 @@
   my.vault.secrets.id_ed25519_nixbuild = {
     group = "users";
     template = ''
-      {{ with secret "kv/apps/nixbuild" }}
+      {{ with secret "kv/apps/nixbuild" -}}
       {{ .Data.data.id_ed25519_nixbuild }}
-      {{ end }}
+      {{- end }}
     '';
   };
   my.vault.secrets."id_ed25519_nixbuild.pub" = {
     group = "users";
     template = ''
-      {{ with secret "kv/apps/nixbuild" }}
+      {{ with secret "kv/apps/nixbuild" -}}
       {{ .Data.data.id_ed25519_nixbuild_pub }}
-      {{ end }}
+      {{- end }}
     '';
   };
   programs.ssh.extraConfig = ''