Update paths for synchting keys
This commit is contained in:
parent
941267e7d0
commit
ff28b6a942
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue