mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
don't delete syncthing folders
This commit is contained in:
parent
7d087eb0c2
commit
3beb734431
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user