syncthing: Rename variable

This commit is contained in:
SebastianStork 2025-11-03 17:51:19 +01:00
parent e714248d4e
commit 83572e8f51
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -10,7 +10,7 @@ let
inherit (config.services.syncthing) dataDir; inherit (config.services.syncthing) dataDir;
useStaticTls = config.custom.sops.secrets |> lib.hasAttr "syncthing"; useSopsSecrets = config.custom.sops.secrets |> lib.hasAttr "syncthing";
in in
{ {
options.custom.services.syncthing = { options.custom.services.syncthing = {
@ -64,7 +64,7 @@ in
}; };
}; };
sops.secrets = lib.mkIf useStaticTls { sops.secrets = lib.mkIf useSopsSecrets {
"syncthing/cert" = { "syncthing/cert" = {
owner = config.services.syncthing.user; owner = config.services.syncthing.user;
restartUnits = [ "syncthing.service" ]; restartUnits = [ "syncthing.service" ];
@ -84,8 +84,8 @@ in
guiAddress = "localhost:${toString cfg.gui.port}"; guiAddress = "localhost:${toString cfg.gui.port}";
cert = lib.mkIf useStaticTls config.sops.secrets."syncthing/cert".path; cert = lib.mkIf useSopsSecrets config.sops.secrets."syncthing/cert".path;
key = lib.mkIf useStaticTls config.sops.secrets."syncthing/key".path; key = lib.mkIf useSopsSecrets config.sops.secrets."syncthing/key".path;
settings = { settings = {
# Get the devices and their ids from the configs of the other hosts # Get the devices and their ids from the configs of the other hosts