syncthing changes

This commit is contained in:
Henri Dohmen 2026-04-04 17:39:41 +02:00
parent bd718d82b2
commit 456049ca7a
2 changed files with 10 additions and 2 deletions

View file

@ -7,6 +7,8 @@ in
enable = true; enable = true;
inherit guiAddress; inherit guiAddress;
settings.gui.insecureSkipHostcheck = true;
settings.folders.sync = { settings.folders.sync = {
path = "/data/sync/documents-hd"; path = "/data/sync/documents-hd";
type = "receiveencrypted"; type = "receiveencrypted";

View file

@ -1,6 +1,5 @@
{ {
lib, lib,
var,
config, config,
... ...
}: }:
@ -8,16 +7,23 @@ lib.mkIf config.hd.desktop.syncthing.enable {
services.syncthing = { services.syncthing = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
user = "hd"; user = "hd";
# The `sync` folder is further configured in mod/syncthing.nix (devices, encryption, versioning).
settings.folders = { settings.folders = {
sync = { sync = {
path = "/home/hd/Sync"; path = "/home/hd/Sync";
type = "sendreceive"; type = "sendreceive";
}; };
keepass = {
id = "keepass";
path = "/home/hd/Sync/KeePassXC";
type = "sendreceive";
devices = [ "p9" ];
};
supernote-note = { supernote-note = {
id = "supernote-note"; id = "supernote-note";
path = "/home/hd/Sync/Dokumente/Supernote/Notizen"; path = "/home/hd/Sync/Dokumente/Supernote/Notizen";
type = "sendreceive"; type = "sendreceive";
devices = var.syncthing.device-names.desktops ++ [ "supernote" ]; devices = [ "supernote" ];
versioning = { versioning = {
type = "simple"; type = "simple";
params.keep = "10"; params.keep = "10";