From 83572e8f5146c475861ef307dd286b0864d67e85 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Mon, 3 Nov 2025 17:51:19 +0100 Subject: [PATCH] syncthing: Rename variable --- modules/system/services/syncthing.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/system/services/syncthing.nix b/modules/system/services/syncthing.nix index ce8edf5..531f1d1 100644 --- a/modules/system/services/syncthing.nix +++ b/modules/system/services/syncthing.nix @@ -10,7 +10,7 @@ let inherit (config.services.syncthing) dataDir; - useStaticTls = config.custom.sops.secrets |> lib.hasAttr "syncthing"; + useSopsSecrets = config.custom.sops.secrets |> lib.hasAttr "syncthing"; in { options.custom.services.syncthing = { @@ -64,7 +64,7 @@ in }; }; - sops.secrets = lib.mkIf useStaticTls { + sops.secrets = lib.mkIf useSopsSecrets { "syncthing/cert" = { owner = config.services.syncthing.user; restartUnits = [ "syncthing.service" ]; @@ -84,8 +84,8 @@ in guiAddress = "localhost:${toString cfg.gui.port}"; - cert = lib.mkIf useStaticTls config.sops.secrets."syncthing/cert".path; - key = lib.mkIf useStaticTls config.sops.secrets."syncthing/key".path; + cert = lib.mkIf useSopsSecrets config.sops.secrets."syncthing/cert".path; + key = lib.mkIf useSopsSecrets config.sops.secrets."syncthing/key".path; settings = { # Get the devices and their ids from the configs of the other hosts