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, ... }: { config, ... }:
{ {
sops.secrets.syncthing_key = {}; sops.secrets."syncthing/key" = { };
sops.secrets.syncthing_cert = {}; sops.secrets."syncthing/cert" = { };
services.syncthing = { services.syncthing = {
enable = true; enable = true;
openDefaultPorts = true; openDefaultPorts = true;
dataDir = "/srv/data"; dataDir = "/srv/data";
key = config.sops.secrets.syncthing_key.path; key = config.sops.secrets."syncthing/key".path;
cert = config.sops.secrets.syncthing_cert.path; cert = config.sops.secrets."syncthing/cert".path;
extraOptions = { extraOptions = {
options = { options = {
localAnnounceEnabled = false; localAnnounceEnabled = false;