Update paths for synchting keys

This commit is contained in:
albert 2025-02-20 08:48:17 -08:00
parent 941267e7d0
commit ff28b6a942
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -1,4 +1,4 @@
{ lib, username, hostname, deployment_type, desktop, ... }: {
{ config, lib, username, hostname, deployment_type, desktop, ... }: {
imports = [ ] ++ lib.optional (builtins.isString desktop) ./syncthing-desktop.nix;
# Set up the secrets file:
@ -21,8 +21,8 @@
services.syncthing = {
enable = true;
guiAddress = "0.0.0.0:8384";
cert = "/run/secrets/syncthing_cert";
key = "/run/secrets/syncthing_key";
cert = config.sops.secrets."syncthing/cert".path;
key = config.sops.secrets."syncthing/key".path;
user = "${username}";
configDir = "/home/${username}/.config/syncthing";
overrideDevices = true;