update syncthing to new secret schema

This commit is contained in:
Felix Buehler 2022-11-29 17:05:49 +01:00
parent f0ba25e517
commit 7659c9beee

View file

@ -1,14 +1,14 @@
{ config, ... }:
{
sops.secrets.syncthing_key = {};
sops.secrets.syncthing_cert = {};
sops.secrets."syncthing/key" = { };
sops.secrets."syncthing/cert" = { };
services.syncthing = {
enable = true;
openDefaultPorts = true;
dataDir = "/srv/data";
key = config.sops.secrets.syncthing_key.path;
cert = config.sops.secrets.syncthing_cert.path;
key = config.sops.secrets."syncthing/key".path;
cert = config.sops.secrets."syncthing/cert".path;
extraOptions = {
options = {
localAnnounceEnabled = false;