mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 11:41:34 +01:00
syncthing: Rename variable
This commit is contained in:
parent
e714248d4e
commit
83572e8f51
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue