don't delete syncthing folders

This commit is contained in:
Tyler Starr 2024-10-23 22:39:10 -07:00
parent 7d087eb0c2
commit 3beb734431

View File

@ -1,8 +1,8 @@
{ config, lib, pkgs, user, ... }: { config, lib, pkgs, user, ... }:
let cfg = config.modules.services.syncthing; let cfg = config.modules.programs.syncthing;
in { in {
options.modules.services.syncthing = with lib; { options.modules.programs.syncthing = with lib; {
enable = lib.mkOption { enable = lib.mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
@ -51,6 +51,7 @@ in {
guiAddress = "0.0.0.0:8384"; guiAddress = "0.0.0.0:8384";
key = "/run/agenix/syncthing/key.pem"; key = "/run/agenix/syncthing/key.pem";
cert = "/run/agenix/syncthing/cert.pem"; cert = "/run/agenix/syncthing/cert.pem";
overrideFolders = false; # don't delete user add folders
settings.devices = cfg.devices; settings.devices = cfg.devices;
}; };
}; };